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 267 of file chr_shared.h.
BodyData::BodyData | ( | void | ) |
Definition at line 335 of file chr_shared.cpp.
void BodyData::addBodyPart | ( | const BodyPartData & | bodyPart | ) |
Definition at line 398 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 378 of file chr_shared.cpp.
References _bodyParts, and BodyPartData::bleedingFactor.
Referenced by CL_ActorWound(), G_BleedWounds(), G_TreatActor(), and HUD_ActorWoundData_f().
float BodyData::getArea | ( | const short | bodyPart | ) | const |
Definition at line 426 of file chr_shared.cpp.
References _bodyParts, and BodyPartData::shape.
Referenced by addBodyPart(), G_DamageActor(), and getRandomBodyPart().
short BodyData::getHitBodyPart | ( | const byte | direction, |
const float | height | ||
) | const |
Definition at line 404 of file chr_shared.cpp.
References _bodyParts, _numBodyParts, Com_DPrintf(), DEBUG_SHARED, f, frand(), name(), and Vector4Copy.
Referenced by G_DamageActor().
short BodyData::getRandomBodyPart | ( | void | ) | const |
Definition at line 340 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 | ( | void | ) | const |
Definition at line 358 of file chr_shared.cpp.
References _id.
Referenced by Com_ParseBodyPart(), GAME_LoadCharacter(), GAME_SaveCharacter(), HOS_EntryWoundData(), and HUD_ActorWoundData_f().
const char * BodyData::id | ( | const short | bodyPart | ) | const |
Definition at line 363 of file chr_shared.cpp.
References _bodyParts, and BodyPartData::id.
const char * BodyData::name | ( | const short | bodyPart | ) | const |
Definition at line 368 of file chr_shared.cpp.
References _bodyParts, and BodyPartData::name.
Referenced by getHitBodyPart(), getRandomBodyPart(), HOS_EntryWoundData(), and HUD_ActorWoundData_f().
short BodyData::numBodyParts | ( | void | ) | const |
Definition at line 388 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 373 of file chr_shared.cpp.
References _bodyParts, BodyPartData::penalties, and type.
Referenced by CL_ActorInjuryModifier(), G_ActorGetInjuryPenalty(), and HUD_ActorWoundData_f().
void BodyData::setId | ( | const char * | id | ) |
Definition at line 393 of file chr_shared.cpp.
References _id, and Q_strncpyz().
Referenced by Com_ParseBodyTemplate().
float BodyData::woundThreshold | ( | const short | bodyPart | ) | const |
Definition at line 383 of file chr_shared.cpp.
References _bodyParts, and BodyPartData::woundThreshold.
Referenced by CL_ActorInjuryModifier(), CL_ActorWound(), G_ActorGetInjuryPenalty(), G_BleedWounds(), G_IsActorWounded(), HOS_GetInjuryLevel(), and HUD_ActorWoundData_f().
|
private |
Definition at line 270 of file chr_shared.h.
Referenced by addBodyPart(), bleedingFactor(), getArea(), getHitBodyPart(), id(), name(), penalty(), and woundThreshold().
|
private |
Definition at line 269 of file chr_shared.h.
|
private |
Definition at line 272 of file chr_shared.h.
Referenced by addBodyPart(), getHitBodyPart(), getRandomBodyPart(), and numBodyParts().
|
private |
Definition at line 271 of file chr_shared.h.
Referenced by addBodyPart(), and getRandomBodyPart().