Space Engineers
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Properties | List of all members
Sandbox.Game.AI.MyAiTargetBase Class Reference
Inheritance diagram for Sandbox.Game.AI.MyAiTargetBase:
SpaceEngineers.Game.AI.MySpiderTarget SpaceEngineers.Game.AI.MyWolfTarget

Public Member Functions

bool HasTarget ()
 
bool IsTargetGridOrBlock (MyAiTargetEnum type)
 
virtual bool IsMemoryTargetValid (MyBBMemoryTarget targetMemory)
 
Vector3D GetMemoryTargetPosition (MyBBMemoryTarget targetMemory)
 
virtual bool IsTargetValid ()
 
 MyAiTargetBase (IMyEntityBot bot)
 
virtual void Init (MyObjectBuilder_AiTarget builder)
 
virtual MyObjectBuilder_AiTarget GetObjectBuilder ()
 
virtual void UnsetTarget ()
 
virtual void DebugDraw ()
 
virtual void DrawLineToTarget (Vector3D from)
 
virtual void Cleanup ()
 
virtual void Update ()
 
bool IsEntityReachable (MyEntity entity)
 
bool IsTreeReachable (MyEntity entity, int treeId)
 
bool PositionIsNearTarget (Vector3D position, float radius)
 
void ClearUnreachableEntities ()
 
void GotoTarget ()
 
void GotoTargetNoPath (float radius, bool resetStuckDetection=true)
 
void GetTargetPosition (Vector3D startingPosition, out Vector3D targetPosition, out float radius)
 
Vector3D GetTargetPosition (Vector3D startingPosition)
 
void AimAtTarget ()
 
void GotoFailed ()
 
virtual bool SetTargetFromMemory (MyBBMemoryTarget memoryTarget)
 
void SetTargetBlock (MySlimBlock slimBlock, ushort?compoundId=null)
 
MySlimBlock GetTargetBlock ()
 
void SetTargetTree (ref MyTrees.ItemInfo targetTree, long treesId)
 
void SetTargetPosition (Vector3D pos)
 
void SetTargetVoxel (Vector3D pos, MyVoxelMap voxelMap)
 
Vector3D GetAimAtPosition (Vector3D startingPosition)
 
virtual bool GetRandomDirectedPosition (Vector3D initPosition, Vector3D direction, out Vector3D outPosition)
 

Protected Member Functions

virtual void SetTargetEntity (MyEntity entity)
 
virtual void UnsetTargetEntity ()
 
Vector3D GetLocalCubeProjectedPosition (ref Vector3D toProject)
 
MySlimBlock GetCubeBlock ()
 

Protected Attributes

MyAiTargetEnum m_currentTarget
 
IMyEntityBot m_user
 
MyAgentBot m_bot
 
MyEntity m_targetEntity = null
 
Vector3I m_targetCube = Vector3I.Zero
 
Vector3D m_targetPosition = Vector3D.Zero
 
Vector3I m_targetInVoxelCoord = Vector3I.Zero
 
ushort m_compoundId = null
 
int m_targetTreeId = 0
 
Dictionary< MyEntity, int > m_unreachableEntities = new Dictionary<MyEntity, int>()
 
Dictionary< Tuple< MyEntity, int >, int > m_unreachableTrees = new Dictionary<Tuple<MyEntity, int>, int>()
 

Static Protected Attributes

static List< MyEntitym_tmpEntities = new List<MyEntity>()
 
static List< Tuple< MyEntity, int > > m_tmpTrees = new List<Tuple<MyEntity, int>>()
 
static List< MyPhysics.HitInfom_tmpHits = new List<MyPhysics.HitInfo>()
 

Properties

MyAiTargetEnum TargetType [get]
 
MyCubeGrid TargetGrid [get]
 
MyEntity TargetEntity [get]
 
Vector3D TargetPosition [get]
 
Vector3D TargetCubeWorldPosition [get]
 
bool HasGotoFailed [get, set]
 

Detailed Description

Definition at line 18 of file MyAiTargetBase.cs.

Constructor & Destructor Documentation

Sandbox.Game.AI.MyAiTargetBase.MyAiTargetBase ( IMyEntityBot  bot)
inline

Definition at line 260 of file MyAiTargetBase.cs.

Member Function Documentation

void Sandbox.Game.AI.MyAiTargetBase.AimAtTarget ( )
inline

Definition at line 572 of file MyAiTargetBase.cs.

virtual void Sandbox.Game.AI.MyAiTargetBase.Cleanup ( )
inlinevirtual

Definition at line 349 of file MyAiTargetBase.cs.

void Sandbox.Game.AI.MyAiTargetBase.ClearUnreachableEntities ( )
inline

Definition at line 463 of file MyAiTargetBase.cs.

virtual void Sandbox.Game.AI.MyAiTargetBase.DebugDraw ( )
inlinevirtual

Definition at line 341 of file MyAiTargetBase.cs.

virtual void Sandbox.Game.AI.MyAiTargetBase.DrawLineToTarget ( Vector3D  from)
inlinevirtual

Definition at line 345 of file MyAiTargetBase.cs.

Vector3D Sandbox.Game.AI.MyAiTargetBase.GetAimAtPosition ( Vector3D  startingPosition)
inline

Definition at line 859 of file MyAiTargetBase.cs.

MySlimBlock Sandbox.Game.AI.MyAiTargetBase.GetCubeBlock ( )
inlineprotected

Definition at line 912 of file MyAiTargetBase.cs.

Vector3D Sandbox.Game.AI.MyAiTargetBase.GetLocalCubeProjectedPosition ( ref Vector3D  toProject)
inlineprotected

Definition at line 831 of file MyAiTargetBase.cs.

Vector3D Sandbox.Game.AI.MyAiTargetBase.GetMemoryTargetPosition ( MyBBMemoryTarget  targetMemory)
inline

Definition at line 189 of file MyAiTargetBase.cs.

virtual MyObjectBuilder_AiTarget Sandbox.Game.AI.MyAiTargetBase.GetObjectBuilder ( )
inlinevirtual

Definition at line 303 of file MyAiTargetBase.cs.

virtual bool Sandbox.Game.AI.MyAiTargetBase.GetRandomDirectedPosition ( Vector3D  initPosition,
Vector3D  direction,
out Vector3D  outPosition 
)
inlinevirtual

Definition at line 906 of file MyAiTargetBase.cs.

MySlimBlock Sandbox.Game.AI.MyAiTargetBase.GetTargetBlock ( )
inline

Definition at line 794 of file MyAiTargetBase.cs.

void Sandbox.Game.AI.MyAiTargetBase.GetTargetPosition ( Vector3D  startingPosition,
out Vector3D  targetPosition,
out float  radius 
)
inline

Definition at line 504 of file MyAiTargetBase.cs.

Vector3D Sandbox.Game.AI.MyAiTargetBase.GetTargetPosition ( Vector3D  startingPosition)
inline

Definition at line 564 of file MyAiTargetBase.cs.

void Sandbox.Game.AI.MyAiTargetBase.GotoFailed ( )
inline

Definition at line 588 of file MyAiTargetBase.cs.

void Sandbox.Game.AI.MyAiTargetBase.GotoTarget ( )
inline

Definition at line 468 of file MyAiTargetBase.cs.

void Sandbox.Game.AI.MyAiTargetBase.GotoTargetNoPath ( float  radius,
bool  resetStuckDetection = true 
)
inline

Definition at line 486 of file MyAiTargetBase.cs.

bool Sandbox.Game.AI.MyAiTargetBase.HasTarget ( )
inline

Definition at line 47 of file MyAiTargetBase.cs.

virtual void Sandbox.Game.AI.MyAiTargetBase.Init ( MyObjectBuilder_AiTarget  builder)
inlinevirtual

Definition at line 269 of file MyAiTargetBase.cs.

bool Sandbox.Game.AI.MyAiTargetBase.IsEntityReachable ( MyEntity  entity)
inline

Definition at line 399 of file MyAiTargetBase.cs.

virtual bool Sandbox.Game.AI.MyAiTargetBase.IsMemoryTargetValid ( MyBBMemoryTarget  targetMemory)
inlinevirtual

Definition at line 145 of file MyAiTargetBase.cs.

bool Sandbox.Game.AI.MyAiTargetBase.IsTargetGridOrBlock ( MyAiTargetEnum  type)
inline

Definition at line 140 of file MyAiTargetBase.cs.

virtual bool Sandbox.Game.AI.MyAiTargetBase.IsTargetValid ( )
inlinevirtual

Definition at line 228 of file MyAiTargetBase.cs.

bool Sandbox.Game.AI.MyAiTargetBase.IsTreeReachable ( MyEntity  entity,
int  treeId 
)
inline

Definition at line 409 of file MyAiTargetBase.cs.

bool Sandbox.Game.AI.MyAiTargetBase.PositionIsNearTarget ( Vector3D  position,
float  radius 
)
inline

Definition at line 451 of file MyAiTargetBase.cs.

void Sandbox.Game.AI.MyAiTargetBase.SetTargetBlock ( MySlimBlock  slimBlock,
ushort?  compoundId = null 
)
inline

Definition at line 782 of file MyAiTargetBase.cs.

virtual void Sandbox.Game.AI.MyAiTargetBase.SetTargetEntity ( MyEntity  entity)
inlineprotectedvirtual

Definition at line 718 of file MyAiTargetBase.cs.

virtual bool Sandbox.Game.AI.MyAiTargetBase.SetTargetFromMemory ( MyBBMemoryTarget  memoryTarget)
inlinevirtual

Definition at line 617 of file MyAiTargetBase.cs.

void Sandbox.Game.AI.MyAiTargetBase.SetTargetPosition ( Vector3D  pos)
inline

Definition at line 815 of file MyAiTargetBase.cs.

void Sandbox.Game.AI.MyAiTargetBase.SetTargetTree ( ref MyTrees.ItemInfo  targetTree,
long  treesId 
)
inline

Definition at line 801 of file MyAiTargetBase.cs.

void Sandbox.Game.AI.MyAiTargetBase.SetTargetVoxel ( Vector3D  pos,
MyVoxelMap  voxelMap 
)
inline

Definition at line 822 of file MyAiTargetBase.cs.

virtual void Sandbox.Game.AI.MyAiTargetBase.UnsetTarget ( )
inlinevirtual

Definition at line 322 of file MyAiTargetBase.cs.

virtual void Sandbox.Game.AI.MyAiTargetBase.UnsetTargetEntity ( )
inlineprotectedvirtual

Definition at line 754 of file MyAiTargetBase.cs.

virtual void Sandbox.Game.AI.MyAiTargetBase.Update ( )
inlinevirtual

Member Data Documentation

MyAgentBot Sandbox.Game.AI.MyAiTargetBase.m_bot
protected

Definition at line 26 of file MyAiTargetBase.cs.

ushort Sandbox.Game.AI.MyAiTargetBase.m_compoundId = null
protected

Definition at line 32 of file MyAiTargetBase.cs.

MyAiTargetEnum Sandbox.Game.AI.MyAiTargetBase.m_currentTarget
protected

Definition at line 24 of file MyAiTargetBase.cs.

Vector3I Sandbox.Game.AI.MyAiTargetBase.m_targetCube = Vector3I.Zero
protected

Definition at line 29 of file MyAiTargetBase.cs.

MyEntity Sandbox.Game.AI.MyAiTargetBase.m_targetEntity = null
protected

Definition at line 28 of file MyAiTargetBase.cs.

Vector3I Sandbox.Game.AI.MyAiTargetBase.m_targetInVoxelCoord = Vector3I.Zero
protected

Definition at line 31 of file MyAiTargetBase.cs.

Vector3D Sandbox.Game.AI.MyAiTargetBase.m_targetPosition = Vector3D.Zero
protected

Definition at line 30 of file MyAiTargetBase.cs.

int Sandbox.Game.AI.MyAiTargetBase.m_targetTreeId = 0
protected

Definition at line 33 of file MyAiTargetBase.cs.

List<MyEntity> Sandbox.Game.AI.MyAiTargetBase.m_tmpEntities = new List<MyEntity>()
staticprotected

Definition at line 38 of file MyAiTargetBase.cs.

List<MyPhysics.HitInfo> Sandbox.Game.AI.MyAiTargetBase.m_tmpHits = new List<MyPhysics.HitInfo>()
staticprotected

Definition at line 40 of file MyAiTargetBase.cs.

List<Tuple<MyEntity, int> > Sandbox.Game.AI.MyAiTargetBase.m_tmpTrees = new List<Tuple<MyEntity, int>>()
staticprotected

Definition at line 39 of file MyAiTargetBase.cs.

Dictionary<MyEntity, int> Sandbox.Game.AI.MyAiTargetBase.m_unreachableEntities = new Dictionary<MyEntity, int>()
protected

Definition at line 35 of file MyAiTargetBase.cs.

Dictionary<Tuple<MyEntity, int>, int> Sandbox.Game.AI.MyAiTargetBase.m_unreachableTrees = new Dictionary<Tuple<MyEntity, int>, int>()
protected

Definition at line 36 of file MyAiTargetBase.cs.

IMyEntityBot Sandbox.Game.AI.MyAiTargetBase.m_user
protected

Definition at line 25 of file MyAiTargetBase.cs.

Property Documentation

bool Sandbox.Game.AI.MyAiTargetBase.HasGotoFailed
getset

Definition at line 138 of file MyAiTargetBase.cs.

Vector3D Sandbox.Game.AI.MyAiTargetBase.TargetCubeWorldPosition
get

Definition at line 121 of file MyAiTargetBase.cs.

MyEntity Sandbox.Game.AI.MyAiTargetBase.TargetEntity
get

Definition at line 78 of file MyAiTargetBase.cs.

MyCubeGrid Sandbox.Game.AI.MyAiTargetBase.TargetGrid
get

Definition at line 69 of file MyAiTargetBase.cs.

Vector3D Sandbox.Game.AI.MyAiTargetBase.TargetPosition
get

Definition at line 83 of file MyAiTargetBase.cs.

MyAiTargetEnum Sandbox.Game.AI.MyAiTargetBase.TargetType
get

Definition at line 43 of file MyAiTargetBase.cs.


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