Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CAIWorker::CAIPlayer Class Reference
Collaboration diagram for CAIWorker::CAIPlayer:

Public Member Functions

 CAIPlayer (CAIWorker &worker, const std::wstring &aiName, player_id_t player, u8 difficulty, const std::wstring &behavior, std::shared_ptr< ScriptInterface > scriptInterface)
 
bool Initialise ()
 
void Run (JS::HandleValue state, int playerID)
 
void Run (JS::HandleValue state, int playerID, JS::HandleValue SharedAI)
 
void InitAI (JS::HandleValue state, JS::HandleValue SharedAI)
 

Public Attributes

CAIWorkerm_Worker
 
std::wstring m_AIName
 
player_id_t m_Player
 
u8 m_Difficulty
 
std::wstring m_Behavior
 
bool m_UseSharedComponent
 
std::shared_ptr< ScriptInterfacem_ScriptInterface
 
JS::PersistentRootedValue m_Obj
 
std::vector< Script::StructuredClonem_Commands
 

Private Member Functions

 NONCOPYABLE (CAIPlayer)
 

Constructor & Destructor Documentation

◆ CAIPlayer()

CAIWorker::CAIPlayer::CAIPlayer ( CAIWorker worker,
const std::wstring &  aiName,
player_id_t  player,
u8  difficulty,
const std::wstring &  behavior,
std::shared_ptr< ScriptInterface scriptInterface 
)
inline

Member Function Documentation

◆ InitAI()

void CAIWorker::CAIPlayer::InitAI ( JS::HandleValue  state,
JS::HandleValue  SharedAI 
)
inline

◆ Initialise()

bool CAIWorker::CAIPlayer::Initialise ( )
inline

◆ NONCOPYABLE()

CAIWorker::CAIPlayer::NONCOPYABLE ( CAIPlayer  )
private

◆ Run() [1/2]

void CAIWorker::CAIPlayer::Run ( JS::HandleValue  state,
int  playerID 
)
inline

◆ Run() [2/2]

void CAIWorker::CAIPlayer::Run ( JS::HandleValue  state,
int  playerID,
JS::HandleValue  SharedAI 
)
inline

Member Data Documentation

◆ m_AIName

std::wstring CAIWorker::CAIPlayer::m_AIName

◆ m_Behavior

std::wstring CAIWorker::CAIPlayer::m_Behavior

◆ m_Commands

std::vector<Script::StructuredClone> CAIWorker::CAIPlayer::m_Commands

◆ m_Difficulty

u8 CAIWorker::CAIPlayer::m_Difficulty

◆ m_Obj

JS::PersistentRootedValue CAIWorker::CAIPlayer::m_Obj

◆ m_Player

player_id_t CAIWorker::CAIPlayer::m_Player

◆ m_ScriptInterface

std::shared_ptr<ScriptInterface> CAIWorker::CAIPlayer::m_ScriptInterface

◆ m_UseSharedComponent

bool CAIWorker::CAIPlayer::m_UseSharedComponent

◆ m_Worker

CAIWorker& CAIWorker::CAIPlayer::m_Worker

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