Barotrauma Client Doc
|
Public Types | |
enum class | TargetType { Any , HumanOnly , EnemyOnly } |
Public Member Functions | |
AITarget (Entity e, XElement element) | |
AITarget (Entity e) | |
void | Update (float deltaTime) |
void | IncreaseSoundRange (float deltaTime, float speed=1) |
void | IncreaseSightRange (float deltaTime, float speed=1) |
void | DecreaseSoundRange (float deltaTime, float speed=1) |
void | DecreaseSightRange (float deltaTime, float speed=1) |
bool | HasSector () |
bool | IsWithinSector (Vector2 worldPosition) |
void | Remove () |
void | Reset () |
void | Draw (SpriteBatch spriteBatch) |
Public Attributes | |
LocalizedString | SonarLabel |
Identifier | SonarIconIdentifier |
double | InDetectableSetTime |
float | MinSoundRange |
float | MaxSoundRange = 100000 |
Static Public Attributes | |
static List< AITarget > | List = new List<AITarget>() |
static bool | ShowAITargets |
Properties | |
Entity | Entity [get] |
float | FadeOutTime = 2 [get] |
How long does it take for the ai target to fade out if not kept alive. More... | |
bool | Static [get] |
bool | StaticSound [get] |
bool | StaticSight [get] |
float | SoundRange [get, set] |
float | SightRange [get, set] |
float | SectorDegrees [get, set] |
Vector2? | SectorDir [get, set] |
float | SonarDisruption [get, set] |
bool | InDetectable [get, set] |
Should be reset to false each frame and kept indetectable by e.g. a status effect. More... | |
bool | NeedsUpdate = true [get] |
Does the AI target do something that requires Update() to be called (e.g. static targets don't need to be updated) More... | |
TargetType | Type [get] |
Vector2 | WorldPosition [get] |
Vector2 | SimPosition [get] |
Definition at line 8 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
|
strong |
Enumerator | |
---|---|
Any | |
HumanOnly | |
EnemyOnly |
Definition at line 142 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
Barotrauma.AITarget.AITarget | ( | Entity | e, |
XElement | element | ||
) |
Definition at line 187 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
Barotrauma.AITarget.AITarget | ( | Entity | e | ) |
Definition at line 212 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
void Barotrauma.AITarget.DecreaseSightRange | ( | float | deltaTime, |
float | speed = 1 |
||
) |
Definition at line 258 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
void Barotrauma.AITarget.DecreaseSoundRange | ( | float | deltaTime, |
float | speed = 1 |
||
) |
Definition at line 253 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
void Barotrauma.AITarget.Draw | ( | SpriteBatch | spriteBatch | ) |
Definition at line 10 of file BarotraumaClient/ClientSource/Characters/AI/AITarget.cs.
bool Barotrauma.AITarget.HasSector | ( | ) |
Definition at line 263 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
void Barotrauma.AITarget.IncreaseSightRange | ( | float | deltaTime, |
float | speed = 1 |
||
) |
Definition at line 248 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
void Barotrauma.AITarget.IncreaseSoundRange | ( | float | deltaTime, |
float | speed = 1 |
||
) |
Definition at line 243 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
bool Barotrauma.AITarget.IsWithinSector | ( | Vector2 | worldPosition | ) |
Definition at line 268 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
void Barotrauma.AITarget.Remove | ( | ) |
Definition at line 275 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
void Barotrauma.AITarget.Reset | ( | ) |
Definition at line 281 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
void Barotrauma.AITarget.Update | ( | float | deltaTime | ) |
Definition at line 218 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
double Barotrauma.AITarget.InDetectableSetTime |
Definition at line 105 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
Definition at line 10 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
float Barotrauma.AITarget.MaxSoundRange = 100000 |
Definition at line 129 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
float Barotrauma.AITarget.MinSoundRange |
Definition at line 128 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
|
static |
Definition at line 8 of file BarotraumaClient/ClientSource/Characters/AI/AITarget.cs.
Identifier Barotrauma.AITarget.SonarIconIdentifier |
Definition at line 101 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
LocalizedString Barotrauma.AITarget.SonarLabel |
Definition at line 100 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
|
get |
Definition at line 13 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
|
get |
How long does it take for the ai target to fade out if not kept alive.
Definition at line 28 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
|
getset |
Should be reset to false each frame and kept indetectable by e.g. a status effect.
Definition at line 110 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
|
get |
Does the AI target do something that requires Update() to be called (e.g. static targets don't need to be updated)
Definition at line 134 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
|
getset |
Definition at line 71 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
|
getset |
Definition at line 78 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
|
getset |
Definition at line 52 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
|
get |
Definition at line 168 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
|
getset |
Definition at line 94 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
|
getset |
Definition at line 34 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
|
get |
Definition at line 30 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
|
get |
Definition at line 32 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
|
get |
Definition at line 31 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
|
get |
Definition at line 140 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.
|
get |
Definition at line 149 of file BarotraumaShared/SharedSource/Characters/AI/AITarget.cs.