DayZ 1.24
Loading...
Searching...
No Matches
ATCCachedObject Class Reference
Collaboration diagram for ATCCachedObject:
[legend]

Protected Member Functions

void ATCCachedTarget ()
 
void Store (Object obj, vector pos, int compIdx)
 cache object and its world pos
 
void Invalidate ()
 invalidate cached objec
 
Object Get ()
 
vector GetCursorWorldPos ()
 
int GetCursorCompIdx ()
 

Protected Attributes

Object m_CachedObject
 
vector m_CursorWPos
 
vector m_ScreenPos
 
int m_CompIdx
 

Detailed Description

Definition at line 1 of file ActionTargetsCursor.c.

Member Function Documentation

◆ ATCCachedTarget()

void ATCCachedObject::ATCCachedTarget ( )
inlineprotected

Definition at line 8 of file ActionTargetsCursor.c.

9 {
12 m_CompIdx = -1;
13 }
static const vector Zero
Definition EnConvert.c:110

References m_CachedObject, m_CompIdx, m_ScreenPos, and vector::Zero.

◆ Get()

Object ATCCachedObject::Get ( )
inlineprotected

Definition at line 37 of file ActionTargetsCursor.c.

38 {
39 return m_CachedObject;
40 }

References m_CachedObject.

◆ GetCursorCompIdx()

int ATCCachedObject::GetCursorCompIdx ( )
inlineprotected

Definition at line 47 of file ActionTargetsCursor.c.

48 {
49 return m_CompIdx;
50 }

References m_CompIdx.

◆ GetCursorWorldPos()

vector ATCCachedObject::GetCursorWorldPos ( )
inlineprotected

Definition at line 42 of file ActionTargetsCursor.c.

43 {
44 return m_CursorWPos;
45 }

References m_CursorWPos.

◆ Invalidate()

void ATCCachedObject::Invalidate ( )
inlineprotected

invalidate cached objec

Definition at line 27 of file ActionTargetsCursor.c.

28 {
30 {
33 m_CompIdx = -1;
34 }
35 }

References m_CachedObject, m_CompIdx, m_CursorWPos, and vector::Zero.

◆ Store()

void ATCCachedObject::Store ( Object obj,
vector pos,
int compIdx )
inlineprotected

cache object and its world pos

Definition at line 16 of file ActionTargetsCursor.c.

17 {
18 if (!m_CachedObject)
19 {
20 m_CachedObject = obj;
21 m_CursorWPos = pos;
23 }
24 }

References m_CachedObject, m_CompIdx, and m_CursorWPos.

Member Data Documentation

◆ m_CachedObject

Object ATCCachedObject::m_CachedObject
protected

Definition at line 3 of file ActionTargetsCursor.c.

Referenced by ATCCachedTarget(), Get(), Invalidate(), and Store().

◆ m_CompIdx

int ATCCachedObject::m_CompIdx
protected

Definition at line 6 of file ActionTargetsCursor.c.

Referenced by ATCCachedTarget(), GetCursorCompIdx(), Invalidate(), and Store().

◆ m_CursorWPos

vector ATCCachedObject::m_CursorWPos
protected

Definition at line 4 of file ActionTargetsCursor.c.

Referenced by GetCursorWorldPos(), Invalidate(), and Store().

◆ m_ScreenPos

vector ATCCachedObject::m_ScreenPos
protected

Definition at line 5 of file ActionTargetsCursor.c.

Referenced by ATCCachedTarget().


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