Barotrauma Client Doc
|
Public Member Functions | |
Limb (Ragdoll ragdoll, Character character, LimbParams limbParams) | |
void | MoveToPos (Vector2 pos, float force, bool pullFromCenter=false) |
void | MirrorPullJoint () |
AttackResult | AddDamage (Vector2 simPosition, float damage, float bleedingDamage, float burnDamage, bool playSound) |
AttackResult | AddDamage (Vector2 simPosition, IEnumerable< Affliction > afflictions, bool playSound, float damageMultiplier=1, float penetration=0f, Character attacker=null) |
bool | SectorHit (Vector2 armorSector, Vector2 simPosition) |
void | Update (float deltaTime) |
void | HideAndDisable (float duration=0, bool ignoreCollisions=true) |
void | ReEnable () |
bool | UpdateAttack (float deltaTime, Vector2 attackSimPos, IDamageable damageTarget, out AttackResult attackResult, float distance=-1, Limb targetLimb=null) |
Returns true if the attack successfully hit something. If the distance is not given, it will be calculated. More... | |
void | ExecuteAttack (IDamageable damageTarget, Limb targetLimb, out AttackResult attackResult) |
void | Release () |
void | ApplyStatusEffects (ActionType actionType, float deltaTime) |
void | Blink () |
void | UpdateBlink (float deltaTime, float referenceRotation) |
IEnumerable< LimbJoint > | GetConnectedJoints () |
IEnumerable< Limb > | GetConnectedLimbs () |
void | Remove () |
void | LoadParams () |
Sprite | GetActiveSprite (bool excludeConditionalSprites=true) |
void | LoadHuskSprite () |
void | LoadHerpesSprite () |
void | RecreateSprites () |
void | Draw (SpriteBatch spriteBatch, Camera cam, Color? overrideColor=null, bool disableDeformations=false) |
void | UpdateWearableTypesToHide () |
void | DrawDamageModifiers (SpriteBatch spriteBatch, Camera cam, Vector2 startPos, bool isScreenSpace) |
Static Public Member Functions | |
static string | GetSpritePath (ContentPath texturePath, CharacterInfo characterInfo) |
Get the full path of a limb sprite, taking into account tags, gender and head id More... | |
Public Attributes | |
readonly Character | character |
readonly Ragdoll | ragdoll |
Note that during the limb initialization, character.AnimController returns null, whereas this field is already assigned. More... | |
readonly LimbParams | Params |
PhysicsBody | body |
Hull | Hull |
readonly LimbType | type |
readonly Attack | attack |
Vector2 | DebugTargetPos |
Vector2 | DebugRefPos |
readonly List< WearableSprite > | WearingItems = new List<WearableSprite>() |
readonly List< WearableSprite > | OtherWearables = new List<WearableSprite>() |
float | BlinkPhase |
bool | FreezeBlinkState |
float | LastAttackSoundTime |
Static Public Attributes | |
const float | SoundInterval = 0.4f |
Protected Member Functions | |
float | GetArmorSectorSize (Vector2 armorSector) |
Protected Attributes | |
DeformableSprite | _deformSprite |
Definition at line 204 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
Definition at line 637 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
AttackResult Barotrauma.Limb.AddDamage | ( | Vector2 | simPosition, |
float | damage, | ||
float | bleedingDamage, | ||
float | burnDamage, | ||
bool | playSound | ||
) |
Definition at line 735 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
AttackResult Barotrauma.Limb.AddDamage | ( | Vector2 | simPosition, |
IEnumerable< Affliction > | afflictions, | ||
bool | playSound, | ||
float | damageMultiplier = 1 , |
||
float | penetration = 0f , |
||
Character | attacker = null |
||
) |
Definition at line 748 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
void Barotrauma.Limb.ApplyStatusEffects | ( | ActionType | actionType, |
float | deltaTime | ||
) |
Definition at line 1226 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
void Barotrauma.Limb.Blink | ( | ) |
Definition at line 1317 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
void Barotrauma.Limb.Draw | ( | SpriteBatch | spriteBatch, |
Camera | cam, | ||
Color? | overrideColor = null , |
||
bool | disableDeformations = false |
||
) |
Definition at line 695 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
void Barotrauma.Limb.DrawDamageModifiers | ( | SpriteBatch | spriteBatch, |
Camera | cam, | ||
Vector2 | startPos, | ||
bool | isScreenSpace | ||
) |
Definition at line 1070 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
void Barotrauma.Limb.ExecuteAttack | ( | IDamageable | damageTarget, |
Limb | targetLimb, | ||
out AttackResult | attackResult | ||
) |
Definition at line 1128 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
Sprite Barotrauma.Limb.GetActiveSprite | ( | bool | excludeConditionalSprites = true | ) |
|
protected |
Definition at line 879 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
IEnumerable<LimbJoint> Barotrauma.Limb.GetConnectedJoints | ( | ) |
IEnumerable<Limb> Barotrauma.Limb.GetConnectedLimbs | ( | ) |
Definition at line 1377 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
static |
Get the full path of a limb sprite, taking into account tags, gender and head id
Definition at line 510 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
void Barotrauma.Limb.HideAndDisable | ( | float | duration = 0 , |
bool | ignoreCollisions = true |
||
) |
Definition at line 935 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
void Barotrauma.Limb.LoadHerpesSprite | ( | ) |
void Barotrauma.Limb.LoadHuskSprite | ( | ) |
void Barotrauma.Limb.LoadParams | ( | ) |
Definition at line 1414 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
void Barotrauma.Limb.MirrorPullJoint | ( | ) |
Definition at line 730 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
void Barotrauma.Limb.MoveToPos | ( | Vector2 | pos, |
float | force, | ||
bool | pullFromCenter = false |
||
) |
Definition at line 717 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
void Barotrauma.Limb.RecreateSprites | ( | ) |
Definition at line 431 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
void Barotrauma.Limb.ReEnable | ( | ) |
Definition at line 955 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
void Barotrauma.Limb.Release | ( | ) |
Definition at line 1213 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
void Barotrauma.Limb.Remove | ( | ) |
Definition at line 1395 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
bool Barotrauma.Limb.SectorHit | ( | Vector2 | armorSector, |
Vector2 | simPosition | ||
) |
Definition at line 867 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
void Barotrauma.Limb.Update | ( | float | deltaTime | ) |
Definition at line 884 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
bool Barotrauma.Limb.UpdateAttack | ( | float | deltaTime, |
Vector2 | attackSimPos, | ||
IDamageable | damageTarget, | ||
out AttackResult | attackResult, | ||
float | distance = -1 , |
||
Limb | targetLimb = null |
||
) |
Returns true if the attack successfully hit something. If the distance is not given, it will be calculated.
Definition at line 970 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
void Barotrauma.Limb.UpdateBlink | ( | float | deltaTime, |
float | referenceRotation | ||
) |
Definition at line 1322 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
void Barotrauma.Limb.UpdateWearableTypesToHide | ( | ) |
Definition at line 998 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
protected |
Definition at line 134 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
readonly Attack Barotrauma.Limb.attack |
Definition at line 273 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
float Barotrauma.Limb.BlinkPhase |
Definition at line 1312 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
PhysicsBody Barotrauma.Limb.body |
Definition at line 217 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
readonly Character Barotrauma.Limb.character |
Definition at line 209 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
Vector2 Barotrauma.Limb.DebugRefPos |
Definition at line 310 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
Vector2 Barotrauma.Limb.DebugTargetPos |
Definition at line 309 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
bool Barotrauma.Limb.FreezeBlinkState |
Definition at line 1313 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
Hull Barotrauma.Limb.Hull |
Definition at line 221 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
float Barotrauma.Limb.LastAttackSoundTime |
Definition at line 107 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
readonly List<WearableSprite> Barotrauma.Limb.OtherWearables = new List<WearableSprite>() |
Definition at line 495 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
readonly LimbParams Barotrauma.Limb.Params |
Definition at line 214 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
readonly Ragdoll Barotrauma.Limb.ragdoll |
Note that during the limb initialization, character.AnimController returns null, whereas this field is already assigned.
Definition at line 213 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
static |
Definition at line 106 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
readonly LimbType Barotrauma.Limb.type |
Definition at line 227 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
readonly List<WearableSprite> Barotrauma.Limb.WearingItems = new List<WearableSprite>() |
Definition at line 493 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
getset |
Definition at line 121 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
get |
Definition at line 154 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
get |
Definition at line 596 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 440 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
getset |
Definition at line 586 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 280 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
getset |
Definition at line 232 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
get |
Definition at line 599 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 193 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
get |
Definition at line 185 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
get |
Definition at line 274 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
getset |
Definition at line 225 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
get |
Definition at line 152 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
get |
Definition at line 174 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
get |
Definition at line 136 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
getset |
Definition at line 478 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
getset |
Definition at line 459 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 281 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 294 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
getset |
Definition at line 243 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
getset |
Definition at line 176 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
get |
Definition at line 592 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 278 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 593 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 178 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
getset |
Definition at line 389 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
getset |
Definition at line 187 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
get |
Definition at line 238 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
getprotected set |
Definition at line 126 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
get |
Definition at line 177 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
getset |
Definition at line 230 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 207 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
get |
Definition at line 212 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
getset |
Definition at line 223 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 591 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 597 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 594 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 334 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 312 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
getset |
Definition at line 353 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 1168 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 218 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
get |
Definition at line 461 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 442 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
getset |
Definition at line 257 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 588 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 400 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
getset |
Definition at line 497 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 575 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
getset |
Definition at line 503 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
getset |
Definition at line 509 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
getset |
Definition at line 542 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 491 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 580 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 422 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 279 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 627 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 207 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 405 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
getprotected set |
Definition at line 123 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
get |
Definition at line 635 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 307 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 219 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 387 of file BarotraumaShared/SharedSource/Characters/Limb.cs.
|
get |
Definition at line 183 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
getprotected set |
Definition at line 128 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
getprotected set |
Definition at line 127 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
getprotected set |
Definition at line 124 of file BarotraumaClient/ClientSource/Characters/Limb.cs.
|
get |
Definition at line 395 of file BarotraumaShared/SharedSource/Characters/Limb.cs.