Barotrauma Client Doc
Barotrauma.Abilities.AbilityCondition Class Referenceabstract
Inheritance diagram for Barotrauma.Abilities.AbilityCondition:
Barotrauma.Abilities.AbilityConditionData Barotrauma.Abilities.AbilityConditionDataless Barotrauma.Abilities.AbilityConditionAffliction Barotrauma.Abilities.AbilityConditionAttackData Barotrauma.Abilities.AbilityConditionAttackResult Barotrauma.Abilities.AbilityConditionCharacter Barotrauma.Abilities.AbilityConditionEvasiveManeuvers Barotrauma.Abilities.AbilityConditionGeneHarvester Barotrauma.Abilities.AbilityConditionItem Barotrauma.Abilities.AbilityConditionItemInSubmarine Barotrauma.Abilities.AbilityConditionItemIsStatic Barotrauma.Abilities.AbilityConditionLocation Barotrauma.Abilities.AbilityConditionMission Barotrauma.Abilities.AbilityConditionReduceAffliction Barotrauma.Abilities.AbilityConditionSkill Barotrauma.Abilities.AbilityConditionStatusEffectIdentifier Barotrauma.Abilities.AbilityConditionAboveVitality Barotrauma.Abilities.AbilityConditionAlliesAboveVitality Barotrauma.Abilities.AbilityConditionAllyHasTalent Barotrauma.Abilities.AbilityConditionCoauthor Barotrauma.Abilities.AbilityConditionCrouched Barotrauma.Abilities.AbilityConditionHasAffliction Barotrauma.Abilities.AbilityConditionHasDifferentJobs Barotrauma.Abilities.AbilityConditionHasItem Barotrauma.Abilities.AbilityConditionHasSkill Barotrauma.Abilities.AbilityConditionHasStatusTag Barotrauma.Abilities.AbilityConditionHasTalent Barotrauma.Abilities.AbilityConditionHasVelocity Barotrauma.Abilities.AbilityConditionInFriendlySubmarine Barotrauma.Abilities.AbilityConditionInHull Barotrauma.Abilities.AbilityConditionInWater Barotrauma.Abilities.AbilityConditionIsAiming Barotrauma.Abilities.AbilityConditionLevelsBehindHighest Barotrauma.Abilities.AbilityConditionNoCrewDied Barotrauma.Abilities.AbilityConditionOnMission Barotrauma.Abilities.AbilityConditionRagdolled Barotrauma.Abilities.AbilityConditionRunning Barotrauma.Abilities.AbilityConditionServerRandom Barotrauma.Abilities.AbilityConditionShipFlooded

Public Member Functions

 AbilityCondition (CharacterTalent characterTalent, ContentXElement conditionElement)
 
abstract bool MatchesCondition (AbilityObject abilityObject)
 
abstract bool MatchesCondition ()
 

Protected Types

enum class  TargetType {
  Any = 0 , Enemy = 1 , Ally = 2 , NotSelf = 3 ,
  Alive = 4 , Monster = 5 , InFriendlySubmarine = 6
}
 

Protected Member Functions

List< TargetTypeParseTargetTypes (string[] targetTypeStrings)
 
bool IsViableTarget (IEnumerable< TargetType > targetTypes, Character targetCharacter)
 

Protected Attributes

CharacterTalent characterTalent
 
Character character
 
bool invert
 

Properties

virtual bool AllowClientSimulation [get]
 

Detailed Description

Definition at line 6 of file AbilityCondition.cs.

Member Enumeration Documentation

◆ TargetType

Enumerator
Any 
Enemy 
Ally 
NotSelf 
Alive 
Monster 
InFriendlySubmarine 

Definition at line 25 of file AbilityCondition.cs.

Constructor & Destructor Documentation

◆ AbilityCondition()

Barotrauma.Abilities.AbilityCondition.AbilityCondition ( CharacterTalent  characterTalent,
ContentXElement  conditionElement 
)

Definition at line 14 of file AbilityCondition.cs.

Member Function Documentation

◆ IsViableTarget()

bool Barotrauma.Abilities.AbilityCondition.IsViableTarget ( IEnumerable< TargetType targetTypes,
Character  targetCharacter 
)
protected

Definition at line 51 of file AbilityCondition.cs.

◆ MatchesCondition() [1/2]

abstract bool Barotrauma.Abilities.AbilityCondition.MatchesCondition ( )
pure virtual

◆ MatchesCondition() [2/2]

abstract bool Barotrauma.Abilities.AbilityCondition.MatchesCondition ( AbilityObject  abilityObject)
pure virtual

◆ ParseTargetTypes()

List<TargetType> Barotrauma.Abilities.AbilityCondition.ParseTargetTypes ( string[]  targetTypeStrings)
protected

Definition at line 36 of file AbilityCondition.cs.

Member Data Documentation

◆ character

Character Barotrauma.Abilities.AbilityCondition.character
protected

Definition at line 9 of file AbilityCondition.cs.

◆ characterTalent

CharacterTalent Barotrauma.Abilities.AbilityCondition.characterTalent
protected

Definition at line 8 of file AbilityCondition.cs.

◆ invert

bool Barotrauma.Abilities.AbilityCondition.invert
protected

Definition at line 10 of file AbilityCondition.cs.

Property Documentation

◆ AllowClientSimulation

virtual bool Barotrauma.Abilities.AbilityCondition.AllowClientSimulation
get

Definition at line 12 of file AbilityCondition.cs.