Pyrogenesis  trunk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
JSI_GameView Namespace Reference

Functions

void RegisterScriptFunctions (const ScriptInterface &ScriptInterface)
 
void RegisterScriptFunctions_Settings (const ScriptInterface &scriptInterface)
 
 DECLARE_BOOLEAN_SCRIPT_SETTING (Culling)
 
 DECLARE_BOOLEAN_SCRIPT_SETTING (LockCullCamera)
 
 DECLARE_BOOLEAN_SCRIPT_SETTING (ConstrainCamera)
 
float CameraGetX (ScriptInterface::CxPrivate *pCxPrivate)
 Get the current X coordinate of the camera. More...
 
float CameraGetZ (ScriptInterface::CxPrivate *pCxPrivate)
 Get the current Z coordinate of the camera. More...
 
void CameraMoveTo (ScriptInterface::CxPrivate *pCxPrivate, entity_pos_t x, entity_pos_t z)
 Move camera to a 2D location. More...
 
void SetCameraTarget (ScriptInterface::CxPrivate *pCxPrivate, float x, float y, float z)
 Set the camera to look at the given location. More...
 
void SetCameraData (ScriptInterface::CxPrivate *pCxPrivate, entity_pos_t x, entity_pos_t y, entity_pos_t z, entity_pos_t rotx, entity_pos_t roty, entity_pos_t zoom)
 Set the data (position, orientation and zoom) of the camera. More...
 
void CameraFollow (ScriptInterface::CxPrivate *pCxPrivate, entity_id_t entityid)
 Start / stop camera following mode. More...
 
void CameraFollowFPS (ScriptInterface::CxPrivate *pCxPrivate, entity_id_t entityid)
 Start / stop first-person camera following mode. More...
 
entity_id_t GetFollowedEntity (ScriptInterface::CxPrivate *pCxPrivate)
 
CFixedVector3D GetTerrainAtScreenPoint (ScriptInterface::CxPrivate *pCxPrivate, int x, int y)
 

Function Documentation

void JSI_GameView::CameraFollow ( ScriptInterface::CxPrivate pCxPrivate,
entity_id_t  entityid 
)

Start / stop camera following mode.

Parameters
entityidunit id to follow. If zero, stop following mode
void JSI_GameView::CameraFollowFPS ( ScriptInterface::CxPrivate pCxPrivate,
entity_id_t  entityid 
)

Start / stop first-person camera following mode.

Parameters
entityidunit id to follow. If zero, stop following mode.
float JSI_GameView::CameraGetX ( ScriptInterface::CxPrivate pCxPrivate)

Get the current X coordinate of the camera.

float JSI_GameView::CameraGetZ ( ScriptInterface::CxPrivate pCxPrivate)

Get the current Z coordinate of the camera.

void JSI_GameView::CameraMoveTo ( ScriptInterface::CxPrivate pCxPrivate,
entity_pos_t  x,
entity_pos_t  z 
)

Move camera to a 2D location.

JSI_GameView::DECLARE_BOOLEAN_SCRIPT_SETTING ( Culling  )
JSI_GameView::DECLARE_BOOLEAN_SCRIPT_SETTING ( LockCullCamera  )
JSI_GameView::DECLARE_BOOLEAN_SCRIPT_SETTING ( ConstrainCamera  )
entity_id_t JSI_GameView::GetFollowedEntity ( ScriptInterface::CxPrivate pCxPrivate)
CFixedVector3D JSI_GameView::GetTerrainAtScreenPoint ( ScriptInterface::CxPrivate pCxPrivate,
int  x,
int  y 
)
void JSI_GameView::RegisterScriptFunctions ( const ScriptInterface ScriptInterface)
void JSI_GameView::RegisterScriptFunctions_Settings ( const ScriptInterface scriptInterface)
void JSI_GameView::SetCameraData ( ScriptInterface::CxPrivate pCxPrivate,
entity_pos_t  x,
entity_pos_t  y,
entity_pos_t  z,
entity_pos_t  rotx,
entity_pos_t  roty,
entity_pos_t  zoom 
)

Set the data (position, orientation and zoom) of the camera.

void JSI_GameView::SetCameraTarget ( ScriptInterface::CxPrivate pCxPrivate,
float  x,
float  y,
float  z 
)

Set the camera to look at the given location.