Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
JSI_Game Namespace Reference

Functions

void StartGame (const ScriptInterface &guiInterface, JS::HandleValue attribs, int playerID, bool storeReplay)
 
void Script_EndGame ()
 
int GetPlayerID ()
 
void SetPlayerID (int id)
 
void SetViewedPlayer (int id)
 
float GetSimRate ()
 
void SetSimRate (float rate)
 
int GetPendingTurns ()
 
bool IsPaused (const ScriptRequest &rq)
 
void SetPaused (const ScriptRequest &rq, bool pause, bool sendMessage)
 
bool IsVisualReplay ()
 
std::wstring GetCurrentReplayDirectory ()
 
void EnableTimeWarpRecording (unsigned int numTurns)
 
void RewindTimeWarp ()
 
void DumpTerrainMipmap ()
 
void RegisterScriptFunctions (const ScriptRequest &rq)
 

Function Documentation

◆ DumpTerrainMipmap()

void JSI_Game::DumpTerrainMipmap ( )

◆ EnableTimeWarpRecording()

void JSI_Game::EnableTimeWarpRecording ( unsigned int  numTurns)

◆ GetCurrentReplayDirectory()

std::wstring JSI_Game::GetCurrentReplayDirectory ( )

◆ GetPendingTurns()

int JSI_Game::GetPendingTurns ( )

◆ GetPlayerID()

int JSI_Game::GetPlayerID ( )

◆ GetSimRate()

float JSI_Game::GetSimRate ( )

◆ IsPaused()

bool JSI_Game::IsPaused ( const ScriptRequest rq)

◆ IsVisualReplay()

bool JSI_Game::IsVisualReplay ( )

◆ RegisterScriptFunctions()

void JSI_Game::RegisterScriptFunctions ( const ScriptRequest rq)

◆ RewindTimeWarp()

void JSI_Game::RewindTimeWarp ( )

◆ Script_EndGame()

void JSI_Game::Script_EndGame ( )

◆ SetPaused()

void JSI_Game::SetPaused ( const ScriptRequest rq,
bool  pause,
bool  sendMessage 
)

◆ SetPlayerID()

void JSI_Game::SetPlayerID ( int  id)

◆ SetSimRate()

void JSI_Game::SetSimRate ( float  rate)

◆ SetViewedPlayer()

void JSI_Game::SetViewedPlayer ( int  id)

◆ StartGame()

void JSI_Game::StartGame ( const ScriptInterface guiInterface,
JS::HandleValue  attribs,
int  playerID,
bool  storeReplay 
)