DayZ Enforce
Script API
Private Member Functions | Private Attributes | List of all members
Hologram Class Reference

#include <Hologram.h>

Private Member Functions

void  ~Hologram ()
 
void  Hologram ()
 
void  Setup (ItemBase source)
 
void  SetupCustom (ItemBase source, string custom_hologram)
 
void  Update ()
 
private vector  GetCollisionBoxSize (vector min, vector max)
 
private vector  GetTargetPosition (PlayerBase player)
 
void  SetUpdatePosition (bool state)
 
bool  GetUpdatePosition ()
 
void  SetParentObject (ItemBase parent)
 
ItemBase  GetParentObject ()
 
void  SetRelativeObject (ItemBase relative)
 
ItemBase  GetRelativeObject ()
 
void  SetCollisionState (bool is_colliding)
 
bool  IsColliding ()
 
void  SetHologramPosition (vector position)
 
vector  GetHologramPosition ()
 
vector  GetHologramOrientation ()
 
void  RefreshVisual ()
 

Private Attributes

private autoptr ItemBase  m_Relative
 
private ItemBase  m_Parent
 
bool  m_IsColliding
 
bool  m_UpdatePosition
 
autoptr Timer  m_UpdateTimer
 
const float  TIMER_UPDATE_INTERVAL = 0.05
 
const string  SELECTION_PLACING = "placing"
 
const string  SELECTION_INVENTORY = "inventory"
 

Constructor & Destructor Documentation

private void Hologram::~Hologram ( )
private

References g_Game, and GetRelativeObject().

private void Hologram::Hologram ( )
private

Member Function Documentation

void Hologram::Setup ( ItemBase  source )
private
void Hologram::SetupCustom ( ItemBase  source,
string  custom_hologram 
)
private
void Hologram::Update ( )
private
private vector Hologram::GetCollisionBoxSize ( vector  min,
vector  max 
)
private

Referenced by Update().

private vector Hologram::GetTargetPosition ( PlayerBase  player )
private
void Hologram::SetUpdatePosition ( bool  state )
private
bool Hologram::GetUpdatePosition ( )
private

References m_UpdatePosition.

Referenced by Update().

void Hologram::SetParentObject ( ItemBase  parent )
private

References m_Parent.

Referenced by Setup(), and SetupCustom().

ItemBase Hologram::GetParentObject ( )
private

References m_Parent.

Referenced by SetHologramPosition(), and Update().

void Hologram::SetRelativeObject ( ItemBase  relative )
private

References m_Relative.

Referenced by Setup(), and SetupCustom().

ItemBase Hologram::GetRelativeObject ( )
private
void Hologram::SetCollisionState ( bool  is_colliding )
private

References m_IsColliding, and RefreshVisual().

Referenced by Update().

bool Hologram::IsColliding ( )
private
void Hologram::SetHologramPosition ( vector  position )
private

References GetParentObject(), and GetRelativeObject().

Referenced by Update().

vector Hologram::GetHologramPosition ( )
private
vector Hologram::GetHologramOrientation ( )
private
void Hologram::RefreshVisual ( )
private

Member Data Documentation

private autoptr ItemBase Hologram::m_Relative
private
private ItemBase Hologram::m_Parent
private
bool Hologram::m_IsColliding
private

Referenced by IsColliding(), and SetCollisionState().

bool Hologram::m_UpdatePosition
private
autoptr Timer Hologram::m_UpdateTimer
private

Referenced by Setup(), SetupCustom(), and Update().

const float Hologram::TIMER_UPDATE_INTERVAL = 0.05
private

Referenced by Setup(), and SetupCustom().

const string Hologram::SELECTION_PLACING = "placing"
private

Referenced by Setup().

const string Hologram::SELECTION_INVENTORY = "inventory"
private

Referenced by Setup().


The documentation for this class was generated from the following files:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)