Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/simulation2/components/ICmpAIManager.h
Show All 24 Lines | |||||
class ICmpAIManager : public IComponent | class ICmpAIManager : public IComponent | ||||
{ | { | ||||
public: | public: | ||||
/** | /** | ||||
* Add a new AI player into the world, based on the AI script identified | * Add a new AI player into the world, based on the AI script identified | ||||
* by @p id (corresponding to a subdirectory in simulation/ai/), | * by @p id (corresponding to a subdirectory in simulation/ai/), | ||||
* to control player @p player. | * to control player @p player. | ||||
*/ | */ | ||||
virtual void AddPlayer(const std::wstring& id, player_id_t player, uint8_t difficulty) = 0; | virtual void AddPlayer(const std::wstring& id, player_id_t player, uint8_t difficulty, const std::wstring&) = 0; | ||||
virtual void SetRNGSeed(uint32_t seed) = 0; | virtual void SetRNGSeed(uint32_t seed) = 0; | ||||
virtual void TryLoadSharedComponent() = 0; | virtual void TryLoadSharedComponent() = 0; | ||||
virtual void RunGamestateInit() = 0; | virtual void RunGamestateInit() = 0; | ||||
/** | /** | ||||
* Call this at the end of a turn, to trigger AI computation which will be | * Call this at the end of a turn, to trigger AI computation which will be | ||||
* ready for the next turn. | * ready for the next turn. | ||||
*/ | */ | ||||
Show All 18 Lines |
Wildfire Games · Phabricator