PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
SceneObject Class Reference

Private Member Functions

SceneObject Init (string obj_name, vector pos)
 
EntityAI GetObject ()
 
string GetName ()
 
bool IsPlayer ()
 
string GetInitScript ()
 
void SetInitScript (string init_script)
 
void EditorShapeUpdatePos ()
 
void EditorShapeSetColor (int color)
 
void EditorShapeSelect ()
 
void EditorShapeDeselect ()
 
vector GetSize ()
 
void EditorShapeAdd ()
 
void EditorShapeRemove ()
 
void EditorLineRemove (SceneObject obj)
 
void EditorLineAdd (SceneObject obj)
 
void LinkEntityAI (EntityAI e)
 
bool IsLinkedWithSceneObject (SceneObject scene_object)
 
void LinkSceneObject (SceneObject scene_object, bool draw_line=true)
 
void UnlinkSceneObject (SceneObject scene_object)
 
void UnlinkAll ()
 
array< SceneObjectGetLinkedSceneObjects ()
 
int GetLinkedSceneObjectsCount ()
 
SceneObject GetLinkedSceneObject (int i)
 
EntityAI GetLinkedObject (int i)
 
void ~SceneObject ()
 
string GetTypeName ()
 
void PlaceOnSurface ()
 
void SetPosition (vector pos)
 
vector GetPosition ()
 
float GetHealth ()
 
float GetMaxHealth ()
 
void SetHealth (float value)
 
string GetPositionAsString ()
 
void SetPositionAsString (string string_pos)
 
float GetRotation ()
 
void SetRotation (float rot)
 
void SceneObjectSynch (Param p)
 
void AddRotation (float add_rot)
 
void AddAttachment (string att_name)
 
bool CanAttachment (EntityAI e)
 
void RemoveAttachment (EntityAI e)
 
array< EntityAIGetAttachments ()
 
TStringArray GetConfigAttachments ()
 
override bool IsPlayer ()
 

Private Attributes

protected EntityAI m_ObjectPtr
 
protected Shape m_DebugShapeBBox
 
protected string m_InitScript
 
protected string m_ObjectName
 
protected string m_ObjectNameOrigin
 
protected ref array< SceneObjectm_LinkedSceneObjects
 
protected ref map< SceneObject, Shapem_LinkedSceneObjectsShapes
 
ref array< intm_LinkedSceneObjectsIndices
 

Static Private Attributes

static const int COLOR_OBJ_BBOX_NORMAL = 0x00000000
 
static const int COLOR_OBJ_BBOX_SELECT = 0x1f007C00
 

Constructor & Destructor Documentation

◆ ~SceneObject()

Member Function Documentation

◆ AddAttachment()

void AddAttachment ( string  att_name)
inlineprivate

◆ AddRotation()

void AddRotation ( float  add_rot)
inlineprivate

◆ CanAttachment()

bool CanAttachment ( EntityAI  e)
inlineprivate

References GetObject().

◆ EditorLineAdd()

void EditorLineAdd ( SceneObject  obj)
inlineprivate

◆ EditorLineRemove()

void EditorLineRemove ( SceneObject  obj)
inlineprivate

◆ EditorShapeAdd()

void EditorShapeAdd ( )
inlineprivate

◆ EditorShapeDeselect()

void EditorShapeDeselect ( )
inlineprivate

◆ EditorShapeRemove()

void EditorShapeRemove ( )
inlineprivate

◆ EditorShapeSelect()

void EditorShapeSelect ( )
inlineprivate

◆ EditorShapeSetColor()

void EditorShapeSetColor ( int  color)
inlineprivate

◆ EditorShapeUpdatePos()

void EditorShapeUpdatePos ( )
inlineprivate

◆ GetAttachments()

array< EntityAI > GetAttachments ( )
inlineprivate

◆ GetConfigAttachments()

◆ GetHealth()

float GetHealth ( )
inlineprivate

◆ GetInitScript()

◆ GetLinkedObject()

EntityAI GetLinkedObject ( int  i)
inlineprivate

◆ GetLinkedSceneObject()

SceneObject GetLinkedSceneObject ( int  i)
inlineprivate

References m_LinkedSceneObjects.

Referenced by GetLinkedObject(), and UnlinkAll().

◆ GetLinkedSceneObjects()

array< SceneObject > GetLinkedSceneObjects ( )
inlineprivate

◆ GetLinkedSceneObjectsCount()

int GetLinkedSceneObjectsCount ( )
inlineprivate

References m_LinkedSceneObjects.

Referenced by UnlinkAll().

◆ GetMaxHealth()

float GetMaxHealth ( )
inlineprivate

References m_ObjectPtr.

◆ GetName()

string GetName ( )
inlineprivate

References m_ObjectName.

◆ GetObject()

◆ GetPosition()

◆ GetPositionAsString()

string GetPositionAsString ( )
inlineprivate

◆ GetRotation()

◆ GetSize()

◆ GetTypeName()

◆ Init()

◆ IsLinkedWithSceneObject()

bool IsLinkedWithSceneObject ( SceneObject  scene_object)
inlineprivate

◆ IsPlayer() [1/2]

◆ IsPlayer() [2/2]

override bool IsPlayer ( )
inlineprivate

◆ LinkEntityAI()

void LinkEntityAI ( EntityAI  e)
inlineprivate

References m_ObjectPtr.

Referenced by SceneData::AddObject(), and Init().

◆ LinkSceneObject()

void LinkSceneObject ( SceneObject  scene_object,
bool  draw_line = true 
)
inlineprivate

◆ PlaceOnSurface()

void PlaceOnSurface ( )
inlineprivate

References GetGame(), m_ObjectPtr, and SceneObjectSynch().

Referenced by SetPosition().

◆ RemoveAttachment()

void RemoveAttachment ( EntityAI  e)
inlineprivate

References GetGame(), and CGame::ObjectDelete().

◆ SceneObjectSynch()

void SceneObjectSynch ( Param  p)
inlineprivate

◆ SetHealth()

void SetHealth ( float  value)
inlineprivate

◆ SetInitScript()

void SetInitScript ( string  init_script)
inlineprivate

◆ SetPosition()

◆ SetPositionAsString()

void SetPositionAsString ( string  string_pos)
inlineprivate

◆ SetRotation()

void SetRotation ( float  rot)
inlineprivate

◆ UnlinkAll()

void UnlinkAll ( )
inlineprivate

◆ UnlinkSceneObject()

void UnlinkSceneObject ( SceneObject  scene_object)
inlineprivate

Field Documentation

◆ COLOR_OBJ_BBOX_NORMAL

const int COLOR_OBJ_BBOX_NORMAL = 0x00000000
staticprivate

Referenced by EditorShapeDeselect().

◆ COLOR_OBJ_BBOX_SELECT

const int COLOR_OBJ_BBOX_SELECT = 0x1f007C00
staticprivate

Referenced by EditorShapeSelect().

◆ m_DebugShapeBBox

protected Shape m_DebugShapeBBox
private

◆ m_InitScript

protected string m_InitScript
private

Referenced by GetInitScript(), and SetInitScript().

◆ m_LinkedSceneObjects

◆ m_LinkedSceneObjectsIndices

ref array<int> m_LinkedSceneObjectsIndices
private

◆ m_LinkedSceneObjectsShapes

protected ref map<SceneObject, Shape> m_LinkedSceneObjectsShapes
private

◆ m_ObjectName

protected string m_ObjectName
private

Referenced by GetName(), and Init().

◆ m_ObjectNameOrigin

protected string m_ObjectNameOrigin
private

Referenced by GetSize(), and Init().

◆ m_ObjectPtr


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