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

Private Member Functions

bool IsRaised ()
 
bool IsRaisedInProne ()
 
bool IsInProne ()
 
bool IsInRaisedProne ()
 
bool IsLeaning ()
 

Private Attributes

int m_CommandTypeId
 
int m_iStanceIdx
 current command's id
 
int m_iMovement
 current stance (DayZPlayerConstants.STANCEIDX_ERECT, ...), only if the command has a stance
 
float m_fLeaning
 current movement (0 idle, 1 walk, 2-run, 3-sprint), only if the command has a movement
 
int m_LocalMovement = -1
 leaning state (not all commands need to have all movements)
 

Detailed Description

Definition at line 1112 of file human.c.

Member Function Documentation

◆ IsInProne()

bool HumanMovementState::IsInProne ( )
inlineprivate

Definition at line 1134 of file human.c.

1135 {
1136 return m_iStanceIdx == DayZPlayerConstants.STANCEIDX_PRONE;
1137 }
int m_iStanceIdx
current command's id
Definition human.c:1115
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References m_iStanceIdx.

◆ IsInRaisedProne()

bool HumanMovementState::IsInRaisedProne ( )
inlineprivate

Definition at line 1140 of file human.c.

1141 {
1142 return m_iStanceIdx == DayZPlayerConstants.STANCEIDX_RAISEDPRONE;
1143 }

References m_iStanceIdx.

◆ IsLeaning()

bool HumanMovementState::IsLeaning ( )
inlineprivate

Definition at line 1146 of file human.c.

1147 {
1148 return m_fLeaning != 0;
1149 }
float m_fLeaning
current movement (0 idle, 1 walk, 2-run, 3-sprint), only if the command has a movement
Definition human.c:1117

References m_fLeaning.

◆ IsRaised()

bool HumanMovementState::IsRaised ( )
inlineprivate

Definition at line 1122 of file human.c.

1123 {
1124 return m_iStanceIdx >= DayZPlayerConstants.STANCEIDX_RAISEDERECT;
1125 }

References m_iStanceIdx.

◆ IsRaisedInProne()

bool HumanMovementState::IsRaisedInProne ( )
inlineprivate

Definition at line 1128 of file human.c.

1129 {
1130 return m_iStanceIdx == DayZPlayerConstants.STANCEIDX_RAISEDPRONE;
1131 }

References m_iStanceIdx.

Member Data Documentation

◆ m_CommandTypeId

int HumanMovementState::m_CommandTypeId
private

Definition at line 1114 of file human.c.

◆ m_fLeaning

float HumanMovementState::m_fLeaning
private

current movement (0 idle, 1 walk, 2-run, 3-sprint), only if the command has a movement

Definition at line 1117 of file human.c.

Referenced by IsLeaning().

◆ m_iMovement

int HumanMovementState::m_iMovement
private

current stance (DayZPlayerConstants.STANCEIDX_ERECT, ...), only if the command has a stance

Definition at line 1116 of file human.c.

◆ m_iStanceIdx

int HumanMovementState::m_iStanceIdx
private

current command's id

Definition at line 1115 of file human.c.

Referenced by IsInProne(), IsInRaisedProne(), IsRaised(), and IsRaisedInProne().

◆ m_LocalMovement

int HumanMovementState::m_LocalMovement = -1
private

leaning state (not all commands need to have all movements)

Definition at line 1119 of file human.c.


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