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

Protected Member Functions

void PerformRegisterImages ()
 
void RegisterImage (string layout_path, string image_name)
 
void RandomizeImageIdx ()
 
array< stringGetTypeLayoutPathArray ()
 
array< stringGetTypeImagePathArray ()
 
void GetCurrentImageData (out Widget layout, out Widget image)
 Layout should be sufficient for generic manipulation of the hit image.
 

Private Member Functions

void HitDirectionImagesBase ()
 

Private Attributes

int m_ImageIndex
 

Detailed Description

Definition at line 2 of file HitDirectionImagesBase.c.

Constructor & Destructor Documentation

◆ HitDirectionImagesBase()

void HitDirectionImagesBase::HitDirectionImagesBase ( )
inlineprivate

Member Function Documentation

◆ GetCurrentImageData()

void HitDirectionImagesBase::GetCurrentImageData ( out Widget layout,
out Widget image )
inlineprotected

Layout should be sufficient for generic manipulation of the hit image.

Definition at line 38 of file HitDirectionImagesBase.c.

39 {
40 layout = GetGame().GetWorkspace().CreateWidgets(GetTypeLayoutPathArray()[m_ImageIndex]);
42 }
proto native CGame GetGame()

References GetGame(), GetTypeImagePathArray(), GetTypeLayoutPathArray(), and m_ImageIndex.

◆ GetTypeImagePathArray()

array< string > HitDirectionImagesBase::GetTypeImagePathArray ( )
inlineprotected

◆ GetTypeLayoutPathArray()

array< string > HitDirectionImagesBase::GetTypeLayoutPathArray ( )
inlineprotected

Definition at line 34 of file HitDirectionImagesBase.c.

34{}

Referenced by GetCurrentImageData(), HitDirectionImagesBase(), and RegisterImage().

◆ PerformRegisterImages()

void HitDirectionImagesBase::PerformRegisterImages ( )
inlineprotected

Definition at line 14 of file HitDirectionImagesBase.c.

15 {
16 /*
17 RegisterImage("gui/layouts/gameplay/HitDirectionIndication.layout","Single_indicator_Splash_1");
18 RegisterImage("gui/layouts/gameplay/HitDirectionIndication.layout","Single_indicator_Splash_2");
19 ...
20 */
21 }

Referenced by HitDirectionImagesBase().

◆ RandomizeImageIdx()

void HitDirectionImagesBase::RandomizeImageIdx ( )
inlineprotected

Definition at line 29 of file HitDirectionImagesBase.c.

30 {
32 }
Definition EnMath.c:7
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].
Definition EnMath.c:54

References Count, GetTypeImagePathArray(), m_ImageIndex, and Math::RandomIntInclusive().

Referenced by HitDirectionImagesBase().

◆ RegisterImage()

void HitDirectionImagesBase::RegisterImage ( string layout_path,
string image_name )
inlineprotected

Definition at line 23 of file HitDirectionImagesBase.c.

24 {
27 }

References GetTypeImagePathArray(), and GetTypeLayoutPathArray().

Member Data Documentation

◆ m_ImageIndex

int HitDirectionImagesBase::m_ImageIndex
private

Definition at line 4 of file HitDirectionImagesBase.c.

Referenced by GetCurrentImageData(), and RandomizeImageIdx().


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