Barotrauma Client Doc
Barotrauma.Abilities.CharacterAbility Class Reference
Inheritance diagram for Barotrauma.Abilities.CharacterAbility:
Barotrauma.Abilities.CharacterAbilityAlienHoarder Barotrauma.Abilities.CharacterAbilityApplyForce Barotrauma.Abilities.CharacterAbilityApplyStatusEffects Barotrauma.Abilities.CharacterAbilityApprenticeship Barotrauma.Abilities.CharacterAbilityAtmosMachine Barotrauma.Abilities.CharacterAbilityBountyHunter Barotrauma.Abilities.CharacterAbilityByTheBook Barotrauma.Abilities.CharacterAbilityGainSimultaneousSkill Barotrauma.Abilities.CharacterAbilityGiveAffliction Barotrauma.Abilities.CharacterAbilityGiveFlag Barotrauma.Abilities.CharacterAbilityGiveMoney Barotrauma.Abilities.CharacterAbilityGivePermanentStat Barotrauma.Abilities.CharacterAbilityGiveResistance Barotrauma.Abilities.CharacterAbilityGiveStat Barotrauma.Abilities.CharacterAbilityGiveTalentPoints Barotrauma.Abilities.CharacterAbilityIncreaseSkill Barotrauma.Abilities.CharacterAbilityInsurancePolicy Barotrauma.Abilities.CharacterAbilityModifyAffliction Barotrauma.Abilities.CharacterAbilityModifyAttackData Barotrauma.Abilities.CharacterAbilityModifyFlag Barotrauma.Abilities.CharacterAbilityModifyResistance Barotrauma.Abilities.CharacterAbilityModifyStat Barotrauma.Abilities.CharacterAbilityModifyStatToFlooding Barotrauma.Abilities.CharacterAbilityModifyStatToLevel Barotrauma.Abilities.CharacterAbilityModifyStatToSkill Barotrauma.Abilities.CharacterAbilityModifyValue Barotrauma.Abilities.CharacterAbilityMultitasker Barotrauma.Abilities.CharacterAbilityPsychoClown Barotrauma.Abilities.CharacterAbilityPutItem Barotrauma.Abilities.CharacterAbilityRegenerateLoot Barotrauma.Abilities.CharacterAbilityResetPermanentStat Barotrauma.Abilities.CharacterAbilitySpawnItemsToContainer

Public Member Functions

 CharacterAbility (CharacterAbilityGroup characterAbilityGroup, ContentXElement abilityElement)
 
bool IsViable ()
 
virtual void InitializeAbility (bool addingFirstTime)
 
virtual void UpdateCharacterAbility (bool conditionsMatched, float timeSinceLastUpdate)
 
void ApplyAbilityEffect (AbilityObject abilityObject)
 

Static Public Member Functions

static CharacterAbility Load (ContentXElement abilityElement, CharacterAbilityGroup characterAbilityGroup, bool errorMessages=true)
 

Protected Member Functions

virtual void VerifyState (bool conditionsMatched, float timeSinceLastUpdate)
 
virtual void ApplyEffect ()
 
virtual void ApplyEffect (AbilityObject abilityObject)
 
void LogAbilityObjectMismatch ()
 

Properties

CharacterAbilityGroup CharacterAbilityGroup [get]
 
CharacterTalent CharacterTalent [get]
 
Character Character [get]
 
bool RequiresAlive [get]
 
virtual bool AllowClientSimulation [get]
 
virtual bool AppliesEffectOnIntervalUpdate [get]
 
float EffectDeltaTime [get]
 Used primarily for StatusEffects. Default to constant outside interval abilities. More...
 

Detailed Description

Definition at line 6 of file CharacterAbility.cs.

Constructor & Destructor Documentation

◆ CharacterAbility()

Barotrauma.Abilities.CharacterAbility.CharacterAbility ( CharacterAbilityGroup  characterAbilityGroup,
ContentXElement  abilityElement 
)

Definition at line 27 of file CharacterAbility.cs.

Member Function Documentation

◆ ApplyAbilityEffect()

void Barotrauma.Abilities.CharacterAbility.ApplyAbilityEffect ( AbilityObject  abilityObject)

Definition at line 66 of file CharacterAbility.cs.

◆ ApplyEffect() [1/2]

◆ ApplyEffect() [2/2]

◆ InitializeAbility()

◆ IsViable()

bool Barotrauma.Abilities.CharacterAbility.IsViable ( )

Definition at line 35 of file CharacterAbility.cs.

◆ Load()

static CharacterAbility Barotrauma.Abilities.CharacterAbility.Load ( ContentXElement  abilityElement,
CharacterAbilityGroup  characterAbilityGroup,
bool  errorMessages = true 
)
static

Definition at line 97 of file CharacterAbility.cs.

◆ LogAbilityObjectMismatch()

void Barotrauma.Abilities.CharacterAbility.LogAbilityObjectMismatch ( )
protected

Definition at line 90 of file CharacterAbility.cs.

◆ UpdateCharacterAbility()

virtual void Barotrauma.Abilities.CharacterAbility.UpdateCharacterAbility ( bool  conditionsMatched,
float  timeSinceLastUpdate 
)
virtual

Reimplemented in Barotrauma.Abilities.CharacterAbilityModifyResistance.

Definition at line 44 of file CharacterAbility.cs.

◆ VerifyState()

Property Documentation

◆ AllowClientSimulation

virtual bool Barotrauma.Abilities.CharacterAbility.AllowClientSimulation
get

Definition at line 14 of file CharacterAbility.cs.

◆ AppliesEffectOnIntervalUpdate

virtual bool Barotrauma.Abilities.CharacterAbility.AppliesEffectOnIntervalUpdate
get

Definition at line 15 of file CharacterAbility.cs.

◆ Character

Character Barotrauma.Abilities.CharacterAbility.Character
get

Definition at line 10 of file CharacterAbility.cs.

◆ CharacterAbilityGroup

CharacterAbilityGroup Barotrauma.Abilities.CharacterAbility.CharacterAbilityGroup
get

Definition at line 8 of file CharacterAbility.cs.

◆ CharacterTalent

CharacterTalent Barotrauma.Abilities.CharacterAbility.CharacterTalent
get

Definition at line 9 of file CharacterAbility.cs.

◆ EffectDeltaTime

float Barotrauma.Abilities.CharacterAbility.EffectDeltaTime
getprotected

Used primarily for StatusEffects. Default to constant outside interval abilities.

Definition at line 25 of file CharacterAbility.cs.

◆ RequiresAlive

bool Barotrauma.Abilities.CharacterAbility.RequiresAlive
get

Definition at line 12 of file CharacterAbility.cs.