|
UFO: Alien Invasion
|
#include <chr_shared.h>

Public Member Functions | |
| BodyData (void) | |
| const char * | id (void) const |
| const char * | id (const short bodyPart) const |
| const char * | name (const short bodyPart) const |
| float | penalty (const short bodyPart, const modifier_types_t type) const |
| float | bleedingFactor (const short bodyPart) const |
| float | woundThreshold (const short bodyPart) const |
| short | getRandomBodyPart (void) const |
| short | numBodyParts (void) const |
| void | setId (const char *id) |
| void | addBodyPart (const BodyPartData &bodyPart) |
| short | getHitBodyPart (const byte direction, const float height) const |
| float | getArea (const short bodyPart) const |
Private Attributes | |
| char | _id [MAX_TEXPATH] |
| BodyPartData | _bodyParts [BODYPART_MAXTYPE] |
| float | _totalBodyArea |
| short | _numBodyParts |
Definition at line 278 of file chr_shared.h.
| BodyData::BodyData | ( | void | ) |
Definition at line 336 of file chr_shared.cpp.
References _numBodyParts, and _totalBodyArea.
| void BodyData::addBodyPart | ( | const BodyPartData & | bodyPart | ) |
Definition at line 399 of file chr_shared.cpp.
References _bodyParts, _numBodyParts, _totalBodyArea, and getArea().
Referenced by Com_ParseBodyPart().
| float BodyData::bleedingFactor | ( | const short | bodyPart | ) | const |
Definition at line 379 of file chr_shared.cpp.
References _bodyParts.
Referenced by CL_ActorWound(), G_BleedWounds(), G_TreatActor(), and HUD_ActorWoundData_f().
| float BodyData::getArea | ( | const short | bodyPart | ) | const |
Definition at line 427 of file chr_shared.cpp.
References _bodyParts.
Referenced by addBodyPart(), G_DamageActor(), and getRandomBodyPart().
| short BodyData::getHitBodyPart | ( | const byte | direction, |
| const float | height ) const |
Definition at line 405 of file chr_shared.cpp.
References _bodyParts, _numBodyParts, Com_DPrintf(), DEBUG_SHARED, frand(), name, and Vector4Copy.
Referenced by G_DamageActor().
| short BodyData::getRandomBodyPart | ( | void | ) | const |
Definition at line 341 of file chr_shared.cpp.
References _numBodyParts, _totalBodyArea, Com_DPrintf(), DEBUG_SHARED, frand(), getArea(), and name.
Referenced by AI_SetStats(), and AM_CheckFire().
| const char * BodyData::id | ( | const short | bodyPart | ) | const |
Definition at line 364 of file chr_shared.cpp.
References _bodyParts.
| const char * BodyData::id | ( | void | ) | const |
Definition at line 359 of file chr_shared.cpp.
References _id.
Referenced by Com_ParseBodyPart(), GAME_LoadCharacter(), GAME_SaveCharacter(), HOS_EntryWoundData(), and HUD_ActorWoundData_f().
| const char * BodyData::name | ( | const short | bodyPart | ) | const |
Definition at line 369 of file chr_shared.cpp.
References _bodyParts.
Referenced by HOS_EntryWoundData(), and HUD_ActorWoundData_f().
| short BodyData::numBodyParts | ( | void | ) | const |
Definition at line 389 of file chr_shared.cpp.
References _numBodyParts.
Referenced by AI_SetStats(), CL_ActorInjuryModifier(), Com_ParseBodyPart(), Com_ParseBodyTemplate(), G_ActorGetInjuryPenalty(), G_BleedWounds(), G_ClientReadCharacter(), G_DamageActor(), G_IsActorWounded(), G_SendWoundStats(), G_TreatActor(), GAME_LoadCharacter(), GAME_NetSendCharacter(), GAME_SaveCharacter(), HOS_EntryWoundData(), HOS_GetInjuryLevel(), HOS_HealWounds(), and HUD_ActorWoundData_f().
| float BodyData::penalty | ( | const short | bodyPart, |
| const modifier_types_t | type ) const |
Definition at line 374 of file chr_shared.cpp.
References _bodyParts, and type.
Referenced by CL_ActorInjuryModifier(), G_ActorGetInjuryPenalty(), and HUD_ActorWoundData_f().
| void BodyData::setId | ( | const char * | id | ) |
Definition at line 394 of file chr_shared.cpp.
References _id, and Q_strncpyz().
Referenced by Com_ParseBodyTemplate().
| float BodyData::woundThreshold | ( | const short | bodyPart | ) | const |
Definition at line 384 of file chr_shared.cpp.
References _bodyParts.
Referenced by CL_ActorInjuryModifier(), CL_ActorWound(), G_ActorGetInjuryPenalty(), G_BleedWounds(), G_IsActorWounded(), HOS_GetInjuryLevel(), and HUD_ActorWoundData_f().
|
private |
Definition at line 281 of file chr_shared.h.
Referenced by addBodyPart(), bleedingFactor(), getArea(), getHitBodyPart(), id(), name(), penalty(), and woundThreshold().
|
private |
Definition at line 280 of file chr_shared.h.
|
private |
Definition at line 283 of file chr_shared.h.
Referenced by addBodyPart(), BodyData(), getHitBodyPart(), getRandomBodyPart(), and numBodyParts().
|
private |
Definition at line 282 of file chr_shared.h.
Referenced by addBodyPart(), BodyData(), and getRandomBodyPart().