Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
ICmpAIManager Class Referenceabstract

#include <ICmpAIManager.h>

Inheritance diagram for ICmpAIManager:
IComponent CCmpAIManager

Public Member Functions

virtual void AddPlayer (std::wstring id, player_id_t player, uint8_t difficulty)=0
 Add a new AI player into the world, based on the AI script identified by id (corresponding to a subdirectory in simulation/ai/), to control player player. More...
 
virtual void TryLoadSharedComponent ()=0
 
virtual void RunGamestateInit ()=0
 
virtual void StartComputation ()=0
 Call this at the end of a turn, to trigger AI computation which will be ready for the next turn. More...
 
virtual void PushCommands ()=0
 Call this at the start of a turn, to push the computed AI commands into the command queue. More...
 
- Public Member Functions inherited from IComponent
virtual ~IComponent ()
 
virtual void Init (const CParamNode &paramNode)=0
 
virtual void Deinit ()=0
 
virtual void HandleMessage (const CMessage &msg, bool global)
 
CEntityHandle GetEntityHandle () const
 
void SetEntityHandle (CEntityHandle ent)
 
entity_id_t GetEntityId () const
 
CEntityHandle GetSystemEntity () const
 
const CSimContextGetSimContext () const
 
void SetSimContext (const CSimContext &context)
 
virtual void Serialize (ISerializer &serialize)=0
 
virtual void Deserialize (const CParamNode &paramNode, IDeserializer &deserialize)=0
 
virtual JSClass * GetJSClass () const
 
virtual jsval GetJSInstance () const
 

Static Public Member Functions

static std::vector
< CScriptValRooted
GetAIs (ScriptInterface &scriptInterface)
 Returns a vector of {"id":"value-for-AddPlayer", "name":"Human readable name"} objects, based on all the available AI scripts. More...
 
- Static Public Member Functions inherited from IComponent
static std::string GetSchema ()
 
static u8 GetSerializationVersion ()
 

Detailed Description

Definition at line 25 of file ICmpAIManager.h.

Member Function Documentation

virtual void ICmpAIManager::AddPlayer ( std::wstring  id,
player_id_t  player,
uint8_t  difficulty 
)
pure virtual

Add a new AI player into the world, based on the AI script identified by id (corresponding to a subdirectory in simulation/ai/), to control player player.

Implemented in CCmpAIManager.

std::vector< CScriptValRooted > ICmpAIManager::GetAIs ( ScriptInterface scriptInterface)
static

Returns a vector of {"id":"value-for-AddPlayer", "name":"Human readable name"} objects, based on all the available AI scripts.

Definition at line 73 of file ICmpAIManager.cpp.

virtual void ICmpAIManager::PushCommands ( )
pure virtual

Call this at the start of a turn, to push the computed AI commands into the command queue.

Implemented in CCmpAIManager.

virtual void ICmpAIManager::RunGamestateInit ( )
pure virtual

Implemented in CCmpAIManager.

virtual void ICmpAIManager::StartComputation ( )
pure virtual

Call this at the end of a turn, to trigger AI computation which will be ready for the next turn.

Implemented in CCmpAIManager.

virtual void ICmpAIManager::TryLoadSharedComponent ( )
pure virtual

Implemented in CCmpAIManager.


The documentation for this class was generated from the following files: