Space Engineers
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Properties | Events | List of all members
Sandbox.Game.AI.MyAIComponent Class Reference
Inheritance diagram for Sandbox.Game.AI.MyAIComponent:
VRage.Game.Components.MySessionComponentBase VRage.Game.Components.Interfaces.IMyUserInputComponent

Classes

struct  AgentGroupData
 

Public Member Functions

 MyAIComponent ()
 
override void LoadData ()
 
override void Init (MyObjectBuilder_SessionComponent sessionComponentBuilder)
 
override void BeforeStart ()
 
override void Simulate ()
 
void PathfindingSetDrawDebug (bool drawDebug)
 
void PathfindingSetDrawNavmesh (bool drawNavmesh)
 
void GenerateNavmeshTile (Vector3D?target)
 
void InvalidateNavmeshPosition (Vector3D?target)
 
void SetPathfindingDebugTarget (Vector3D?target)
 
override void UpdateAfterSimulation ()
 
override MyObjectBuilder_SessionComponent GetObjectBuilder ()
 
int SpawnNewBot (MyAgentDefinition agentDefinition)
 
int SpawnNewBot (MyAgentDefinition agentDefinition, Vector3D position, bool createdByPlayer=true)
 
bool SpawnNewBotGroup (string type, List< AgentGroupData > groupData, List< int > outIds)
 
int SpawnNewBot (MyAgentDefinition agentDefinition, Vector3D?spawnPosition)
 
bool CanSpawnMoreBots (MyPlayer.PlayerId pid)
 
int GetAvailableUncontrolledBotsCount ()
 
int GetBotCount (string behaviorType)
 
void CleanUnusedIdentities ()
 
void DespawnBotsOfType (string botType)
 
void RemoveBot (int playerNumber, bool removeCharacter=false)
 
override void HandleInput ()
 
void TrySpawnBot (MyAgentDefinition agentDefinition)
 
void DebugDrawBots ()
 
void DebugSelectNextBot ()
 
void DebugSelectPreviousBot ()
 
void DebugRemoveFirstBot ()
 
- Public Member Functions inherited from VRage.Game.Components.MySessionComponentBase
virtual bool UpdatedBeforeInit ()
 
 MySessionComponentBase ()
 
void SetUpdateOrder (MyUpdateOrder order)
 
virtual void InitFromDefinition (MySessionComponentDefinition definition)
 
void AfterLoadData ()
 
void UnloadDataConditional ()
 
virtual void SaveData ()
 
virtual void UpdateBeforeSimulation ()
 
virtual void UpdatingStopped ()
 
virtual void Draw ()
 
override string ToString ()
 

Static Public Member Functions

static int GenerateBotId (int lastSpawnedBot)
 
static int GenerateBotId ()
 

Public Attributes

MyAgentDefinition BotToSpawn = null
 
MyAiCommandDefinition CommandDefinition = null
 
- Public Attributes inherited from VRage.Game.Components.MySessionComponentBase
readonly string DebugName
 
readonly int Priority
 
readonly Type ComponentType
 
IMySession Session
 

Static Public Attributes

static MyAIComponent Static
 
static MyBotFactoryBase BotFactory
 

Protected Member Functions

override void UnloadData ()
 

Properties

MyBotCollection Bots [get]
 
IMyPathfinding Pathfinding [get]
 
MyBehaviorTreeCollection BehaviorTrees [get]
 
override Type[] Dependencies [get]
 
Vector3D DebugTarget [get]
 
- Properties inherited from VRage.Game.Components.MySessionComponentBase
MyUpdateOrder UpdateOrder [get]
 
MyObjectBuilderType ObjectBuilderType [get]
 
bool Loaded [get]
 
bool Initialized [get]
 
MyDefinitionId Definition [get, set]
 
virtual Type[] Dependencies [get]
 
virtual bool IsRequiredByGame [get]
 Indicates whether a session component should be used in current configuration. Example: MyDestructionData component returns true only when game uses Havok Destruction More...
 

Events

Action< int, MyBotDefinitionBotCreatedEvent
 

Detailed Description

Definition at line 44 of file MyAIComponent.cs.

Constructor & Destructor Documentation

Sandbox.Game.AI.MyAIComponent.MyAIComponent ( )
inline

Definition at line 111 of file MyAIComponent.cs.

Member Function Documentation

override void Sandbox.Game.AI.MyAIComponent.BeforeStart ( )
inlinevirtual

Reimplemented from VRage.Game.Components.MySessionComponentBase.

Definition at line 185 of file MyAIComponent.cs.

bool Sandbox.Game.AI.MyAIComponent.CanSpawnMoreBots ( MyPlayer.PlayerId  pid)
inline

Definition at line 473 of file MyAIComponent.cs.

void Sandbox.Game.AI.MyAIComponent.CleanUnusedIdentities ( )
inline

Definition at line 525 of file MyAIComponent.cs.

void Sandbox.Game.AI.MyAIComponent.DebugDrawBots ( )
inline

Definition at line 867 of file MyAIComponent.cs.

void Sandbox.Game.AI.MyAIComponent.DebugRemoveFirstBot ( )
inline

Definition at line 885 of file MyAIComponent.cs.

void Sandbox.Game.AI.MyAIComponent.DebugSelectNextBot ( )
inline

Definition at line 875 of file MyAIComponent.cs.

void Sandbox.Game.AI.MyAIComponent.DebugSelectPreviousBot ( )
inline

Definition at line 880 of file MyAIComponent.cs.

void Sandbox.Game.AI.MyAIComponent.DespawnBotsOfType ( string  botType)
inline

Definition at line 686 of file MyAIComponent.cs.

static int Sandbox.Game.AI.MyAIComponent.GenerateBotId ( int  lastSpawnedBot)
inlinestatic

Definition at line 848 of file MyAIComponent.cs.

static int Sandbox.Game.AI.MyAIComponent.GenerateBotId ( )
inlinestatic

Definition at line 860 of file MyAIComponent.cs.

void Sandbox.Game.AI.MyAIComponent.GenerateNavmeshTile ( Vector3D target)
inline

Definition at line 268 of file MyAIComponent.cs.

int Sandbox.Game.AI.MyAIComponent.GetAvailableUncontrolledBotsCount ( )
inline

Definition at line 515 of file MyAIComponent.cs.

int Sandbox.Game.AI.MyAIComponent.GetBotCount ( string  behaviorType)
inline

Definition at line 520 of file MyAIComponent.cs.

override MyObjectBuilder_SessionComponent Sandbox.Game.AI.MyAIComponent.GetObjectBuilder ( )
inlinevirtual

Reimplemented from VRage.Game.Components.MySessionComponentBase.

Definition at line 400 of file MyAIComponent.cs.

override void Sandbox.Game.AI.MyAIComponent.HandleInput ( )
inlinevirtual

Reimplemented from VRage.Game.Components.MySessionComponentBase.

Definition at line 727 of file MyAIComponent.cs.

override void Sandbox.Game.AI.MyAIComponent.Init ( MyObjectBuilder_SessionComponent  sessionComponentBuilder)
inlinevirtual

Reimplemented from VRage.Game.Components.MySessionComponentBase.

Definition at line 169 of file MyAIComponent.cs.

void Sandbox.Game.AI.MyAIComponent.InvalidateNavmeshPosition ( Vector3D target)
inline

Definition at line 285 of file MyAIComponent.cs.

override void Sandbox.Game.AI.MyAIComponent.LoadData ( )
inlinevirtual

Reimplemented from VRage.Game.Components.MySessionComponentBase.

Definition at line 117 of file MyAIComponent.cs.

void Sandbox.Game.AI.MyAIComponent.PathfindingSetDrawDebug ( bool  drawDebug)
inline

Definition at line 252 of file MyAIComponent.cs.

void Sandbox.Game.AI.MyAIComponent.PathfindingSetDrawNavmesh ( bool  drawNavmesh)
inline

Definition at line 257 of file MyAIComponent.cs.

void Sandbox.Game.AI.MyAIComponent.RemoveBot ( int  playerNumber,
bool  removeCharacter = false 
)
inline

Definition at line 711 of file MyAIComponent.cs.

void Sandbox.Game.AI.MyAIComponent.SetPathfindingDebugTarget ( Vector3D target)
inline

Definition at line 302 of file MyAIComponent.cs.

override void Sandbox.Game.AI.MyAIComponent.Simulate ( )
inlinevirtual

Reimplemented from VRage.Game.Components.MySessionComponentBase.

Definition at line 216 of file MyAIComponent.cs.

int Sandbox.Game.AI.MyAIComponent.SpawnNewBot ( MyAgentDefinition  agentDefinition)
inline

Definition at line 413 of file MyAIComponent.cs.

int Sandbox.Game.AI.MyAIComponent.SpawnNewBot ( MyAgentDefinition  agentDefinition,
Vector3D  position,
bool  createdByPlayer = true 
)
inline

Definition at line 422 of file MyAIComponent.cs.

int Sandbox.Game.AI.MyAIComponent.SpawnNewBot ( MyAgentDefinition  agentDefinition,
Vector3D spawnPosition 
)
inline

Definition at line 468 of file MyAIComponent.cs.

bool Sandbox.Game.AI.MyAIComponent.SpawnNewBotGroup ( string  type,
List< AgentGroupData groupData,
List< int >  outIds 
)
inline

Definition at line 427 of file MyAIComponent.cs.

void Sandbox.Game.AI.MyAIComponent.TrySpawnBot ( MyAgentDefinition  agentDefinition)
inline

Definition at line 743 of file MyAIComponent.cs.

override void Sandbox.Game.AI.MyAIComponent.UnloadData ( )
inlineprotectedvirtual

Reimplemented from VRage.Game.Components.MySessionComponentBase.

Definition at line 359 of file MyAIComponent.cs.

override void Sandbox.Game.AI.MyAIComponent.UpdateAfterSimulation ( )
inlinevirtual

Reimplemented from VRage.Game.Components.MySessionComponentBase.

Definition at line 333 of file MyAIComponent.cs.

Member Data Documentation

MyBotFactoryBase Sandbox.Game.AI.MyAIComponent.BotFactory
static

Definition at line 87 of file MyAIComponent.cs.

MyAgentDefinition Sandbox.Game.AI.MyAIComponent.BotToSpawn = null

Definition at line 96 of file MyAIComponent.cs.

MyAiCommandDefinition Sandbox.Game.AI.MyAIComponent.CommandDefinition = null

Definition at line 97 of file MyAIComponent.cs.

MyAIComponent Sandbox.Game.AI.MyAIComponent.Static
static

Definition at line 86 of file MyAIComponent.cs.

Property Documentation

MyBehaviorTreeCollection Sandbox.Game.AI.MyAIComponent.BehaviorTrees
get

Definition at line 80 of file MyAIComponent.cs.

MyBotCollection Sandbox.Game.AI.MyAIComponent.Bots
get

Definition at line 78 of file MyAIComponent.cs.

Vector3D Sandbox.Game.AI.MyAIComponent.DebugTarget
get

Definition at line 265 of file MyAIComponent.cs.

override Type [] Sandbox.Game.AI.MyAIComponent.Dependencies
get

Definition at line 162 of file MyAIComponent.cs.

IMyPathfinding Sandbox.Game.AI.MyAIComponent.Pathfinding
get

Definition at line 79 of file MyAIComponent.cs.

Event Documentation

Action<int, MyBotDefinition> Sandbox.Game.AI.MyAIComponent.BotCreatedEvent

Definition at line 99 of file MyAIComponent.cs.


The documentation for this class was generated from the following file: