Barotrauma Client Doc
Barotrauma.CharacterParams.AIParams Class Reference
Inheritance diagram for Barotrauma.CharacterParams.AIParams:
Barotrauma.CharacterParams.SubParam Barotrauma.ISerializableEntity

Public Member Functions

 AIParams (ContentXElement element, CharacterParams character)
 
bool TryAddEmptyTarget (out TargetParams targetParams)
 
bool TryAddNewTarget (string tag, AIState state, float priority, out TargetParams targetParams)
 
bool TryAddNewTarget (Identifier tag, AIState state, float priority, out TargetParams targetParams)
 
bool HasTag (string tag)
 
bool HasTag (Identifier tag)
 
bool RemoveTarget (TargetParams target)
 
bool TryGetTarget (string targetTag, out TargetParams target)
 
bool TryGetTarget (Identifier targetTag, out TargetParams target)
 
bool TryGetTarget (Character targetCharacter, out TargetParams target)
 
bool TryGetTarget (IEnumerable< Identifier > tags, out TargetParams target)
 
TargetParams GetTarget (string targetTag, bool throwError=true)
 
TargetParams GetTarget (Identifier targetTag, bool throwError=true)
 
- Public Member Functions inherited from Barotrauma.CharacterParams.SubParam
 SubParam (ContentXElement element, CharacterParams character)
 
virtual bool Deserialize (bool recursive=true)
 
virtual bool Serialize (bool recursive=true)
 
virtual void Reset ()
 
virtual void AddToEditor (ParamsEditor editor, bool recursive=true, int space=0, GUIFont titleFont=null)
 

Protected Attributes

readonly List< TargetParamstargets = new List<TargetParams>()
 

Properties

override string Name [get]
 
float CombatStrength [get]
 
float Sight [get]
 
float Hearing [get]
 
float AggressionHurt [get]
 
float AggressionGreed [get]
 
float FleeHealthThreshold [get, set]
 
bool AttackWhenProvoked [get]
 
bool AvoidGunfire [get]
 
float DamageThreshold [get]
 
float AvoidTime [get]
 
float MinFleeTime [get]
 
bool AggressiveBoarding [get]
 
bool EnforceAggressiveBehaviorForMissions [get]
 
bool TargetOuterWalls [get]
 
bool RandomAttack [get]
 
bool CanOpenDoors [get]
 
bool UsePathFindingToGetInside [get, set]
 
bool KeepDoorsClosed [get]
 
bool AvoidAbyss [get, set]
 
bool StayInAbyss [get, set]
 
bool PatrolFlooded [get, set]
 
bool PatrolDry [get, set]
 
float StartAggression [get]
 
float MaxAggression [get]
 
float AggressionCumulation [get]
 
WallTargetingMethod WallTargetingMethod [get]
 
IEnumerable< TargetParamsTargets [get]
 
- Properties inherited from Barotrauma.CharacterParams.SubParam
virtual string Name [get, set]
 
Dictionary< Identifier, SerializablePropertySerializableProperties [get]
 
ContentXElement Element [get, set]
 
List< SubParamSubParams = new List<SubParam>() [get, set]
 
CharacterParams Character [get]
 
SerializableEntityEditor SerializableEntityEditor [get, protected set]
 
- Properties inherited from Barotrauma.ISerializableEntity
string Name [get]
 
Dictionary< Identifier, SerializablePropertySerializableProperties [get]
 

Additional Inherited Members

- Protected Member Functions inherited from Barotrauma.CharacterParams.SubParam
ContentXElement CreateElement (string name, params object[] attrs)
 
bool RemoveSubParam< T > (T subParam, IList< T > collection=null)
 

Detailed Description

Definition at line 624 of file CharacterParams.cs.

Constructor & Destructor Documentation

◆ AIParams()

Barotrauma.CharacterParams.AIParams.AIParams ( ContentXElement  element,
CharacterParams  character 
)

Definition at line 709 of file CharacterParams.cs.

Member Function Documentation

◆ GetTarget() [1/2]

TargetParams Barotrauma.CharacterParams.AIParams.GetTarget ( Identifier  targetTag,
bool  throwError = true 
)

Definition at line 809 of file CharacterParams.cs.

◆ GetTarget() [2/2]

TargetParams Barotrauma.CharacterParams.AIParams.GetTarget ( string  targetTag,
bool  throwError = true 
)

◆ HasTag() [1/2]

bool Barotrauma.CharacterParams.AIParams.HasTag ( Identifier  tag)

Definition at line 761 of file CharacterParams.cs.

◆ HasTag() [2/2]

bool Barotrauma.CharacterParams.AIParams.HasTag ( string  tag)

◆ RemoveTarget()

bool Barotrauma.CharacterParams.AIParams.RemoveTarget ( TargetParams  target)

◆ TryAddEmptyTarget()

bool Barotrauma.CharacterParams.AIParams.TryAddEmptyTarget ( out TargetParams  targetParams)

◆ TryAddNewTarget() [1/2]

bool Barotrauma.CharacterParams.AIParams.TryAddNewTarget ( Identifier  tag,
AIState  state,
float  priority,
out TargetParams  targetParams 
)

Definition at line 740 of file CharacterParams.cs.

◆ TryAddNewTarget() [2/2]

bool Barotrauma.CharacterParams.AIParams.TryAddNewTarget ( string  tag,
AIState  state,
float  priority,
out TargetParams  targetParams 
)

◆ TryGetTarget() [1/4]

bool Barotrauma.CharacterParams.AIParams.TryGetTarget ( Character  targetCharacter,
out TargetParams  target 
)

Definition at line 778 of file CharacterParams.cs.

◆ TryGetTarget() [2/4]

bool Barotrauma.CharacterParams.AIParams.TryGetTarget ( Identifier  targetTag,
out TargetParams  target 
)

Definition at line 772 of file CharacterParams.cs.

◆ TryGetTarget() [3/4]

bool Barotrauma.CharacterParams.AIParams.TryGetTarget ( IEnumerable< Identifier tags,
out TargetParams  target 
)

Definition at line 787 of file CharacterParams.cs.

◆ TryGetTarget() [4/4]

bool Barotrauma.CharacterParams.AIParams.TryGetTarget ( string  targetTag,
out TargetParams  target 
)

Member Data Documentation

◆ targets

readonly List<TargetParams> Barotrauma.CharacterParams.AIParams.targets = new List<TargetParams>()
protected

Definition at line 707 of file CharacterParams.cs.

Property Documentation

◆ AggressionCumulation

float Barotrauma.CharacterParams.AIParams.AggressionCumulation
get

Definition at line 701 of file CharacterParams.cs.

◆ AggressionGreed

float Barotrauma.CharacterParams.AIParams.AggressionGreed
get

Definition at line 641 of file CharacterParams.cs.

◆ AggressionHurt

float Barotrauma.CharacterParams.AIParams.AggressionHurt
get

Definition at line 638 of file CharacterParams.cs.

◆ AggressiveBoarding

bool Barotrauma.CharacterParams.AIParams.AggressiveBoarding
get

Definition at line 662 of file CharacterParams.cs.

◆ AttackWhenProvoked

bool Barotrauma.CharacterParams.AIParams.AttackWhenProvoked
get

Definition at line 647 of file CharacterParams.cs.

◆ AvoidAbyss

bool Barotrauma.CharacterParams.AIParams.AvoidAbyss
getset

Definition at line 683 of file CharacterParams.cs.

◆ AvoidGunfire

bool Barotrauma.CharacterParams.AIParams.AvoidGunfire
get

Definition at line 650 of file CharacterParams.cs.

◆ AvoidTime

float Barotrauma.CharacterParams.AIParams.AvoidTime
get

Definition at line 656 of file CharacterParams.cs.

◆ CanOpenDoors

bool Barotrauma.CharacterParams.AIParams.CanOpenDoors
get

Definition at line 674 of file CharacterParams.cs.

◆ CombatStrength

float Barotrauma.CharacterParams.AIParams.CombatStrength
get

Definition at line 629 of file CharacterParams.cs.

◆ DamageThreshold

float Barotrauma.CharacterParams.AIParams.DamageThreshold
get

Definition at line 653 of file CharacterParams.cs.

◆ EnforceAggressiveBehaviorForMissions

bool Barotrauma.CharacterParams.AIParams.EnforceAggressiveBehaviorForMissions
get

Definition at line 665 of file CharacterParams.cs.

◆ FleeHealthThreshold

float Barotrauma.CharacterParams.AIParams.FleeHealthThreshold
getset

Definition at line 644 of file CharacterParams.cs.

◆ Hearing

float Barotrauma.CharacterParams.AIParams.Hearing
get

Definition at line 635 of file CharacterParams.cs.

◆ KeepDoorsClosed

bool Barotrauma.CharacterParams.AIParams.KeepDoorsClosed
get

Definition at line 680 of file CharacterParams.cs.

◆ MaxAggression

float Barotrauma.CharacterParams.AIParams.MaxAggression
get

Definition at line 698 of file CharacterParams.cs.

◆ MinFleeTime

float Barotrauma.CharacterParams.AIParams.MinFleeTime
get

Definition at line 659 of file CharacterParams.cs.

◆ Name

override string Barotrauma.CharacterParams.AIParams.Name
get

Definition at line 626 of file CharacterParams.cs.

◆ PatrolDry

bool Barotrauma.CharacterParams.AIParams.PatrolDry
getset

Definition at line 692 of file CharacterParams.cs.

◆ PatrolFlooded

bool Barotrauma.CharacterParams.AIParams.PatrolFlooded
getset

Definition at line 689 of file CharacterParams.cs.

◆ RandomAttack

bool Barotrauma.CharacterParams.AIParams.RandomAttack
get

Definition at line 671 of file CharacterParams.cs.

◆ Sight

float Barotrauma.CharacterParams.AIParams.Sight
get

Definition at line 632 of file CharacterParams.cs.

◆ StartAggression

float Barotrauma.CharacterParams.AIParams.StartAggression
get

Definition at line 695 of file CharacterParams.cs.

◆ StayInAbyss

bool Barotrauma.CharacterParams.AIParams.StayInAbyss
getset

Definition at line 686 of file CharacterParams.cs.

◆ TargetOuterWalls

bool Barotrauma.CharacterParams.AIParams.TargetOuterWalls
get

Definition at line 668 of file CharacterParams.cs.

◆ Targets

IEnumerable<TargetParams> Barotrauma.CharacterParams.AIParams.Targets
get

Definition at line 706 of file CharacterParams.cs.

◆ UsePathFindingToGetInside

bool Barotrauma.CharacterParams.AIParams.UsePathFindingToGetInside
getset

Definition at line 677 of file CharacterParams.cs.

◆ WallTargetingMethod

WallTargetingMethod Barotrauma.CharacterParams.AIParams.WallTargetingMethod
get

Definition at line 704 of file CharacterParams.cs.