truelight@9450: /* $Id$ */ truelight@9450: truebrain@9829: /** @file ai_settings.hpp Everything to change AI settings. */ truelight@9450: truelight@9450: #ifndef AI_SETTINGS_HPP truelight@9450: #define AI_SETTINGS_HPP truelight@9450: truelight@9450: #include "ai_object.hpp" truelight@9450: truelight@9450: /** truelight@9450: * Class that handles all AI settings related functions. truelight@9450: */ truelight@9450: class AISettings : public AIObject { truelight@9450: public: truelight@9529: static const char *GetClassName() { return "AISettings"; } truelight@9529: truelight@9529: /** truelight@9450: * Change the minimum amount of time the AI should be put in suspend mode truelight@9450: * when you execute a command. Normally in SP this is 1, and in MP it is truelight@9450: * what ever delay the server has been programmed to delay commands truelight@9450: * (normally between 1 and 5). To give a more 'real' effect to your AI, truelight@9450: * you can control that number here. truebrain@9839: * @param ticks The minimum amount of ticks to wait. truebrain@9839: * @pre Ticks should be positive. Too big values will influence performance of the AI. truelight@9450: * @note If the number is lower then the MP setting, the MP setting wins. truelight@9450: */ truebrain@9749: static void SetCommandDelay(uint ticks); truelight@9450: }; truelight@9450: truelight@9450: #endif /* AI_SETTINGS_HPP */