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

Public Member Functions

 MyWolfTarget (IMyEntityBot bot)
 
void Attack (bool playSound)
 
override void Update ()
 
- Public Member Functions inherited from Sandbox.Game.AI.MyAiTargetBase
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 ()
 
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)
 

Properties

bool IsAttacking [get]
 
- Properties inherited from Sandbox.Game.AI.MyAiTargetBase
MyAiTargetEnum TargetType [get]
 
MyCubeGrid TargetGrid [get]
 
MyEntity TargetEntity [get]
 
Vector3D TargetPosition [get]
 
Vector3D TargetCubeWorldPosition [get]
 
bool HasGotoFailed [get, set]
 

Additional Inherited Members

- Protected Member Functions inherited from Sandbox.Game.AI.MyAiTargetBase
virtual void SetTargetEntity (MyEntity entity)
 
virtual void UnsetTargetEntity ()
 
Vector3D GetLocalCubeProjectedPosition (ref Vector3D toProject)
 
MySlimBlock GetCubeBlock ()
 
- Protected Attributes inherited from Sandbox.Game.AI.MyAiTargetBase
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 inherited from Sandbox.Game.AI.MyAiTargetBase
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>()
 

Detailed Description

Definition at line 19 of file MyWolfTarget.cs.

Constructor & Destructor Documentation

SpaceEngineers.Game.AI.MyWolfTarget.MyWolfTarget ( IMyEntityBot  bot)
inline

Definition at line 39 of file MyWolfTarget.cs.

Member Function Documentation

void SpaceEngineers.Game.AI.MyWolfTarget.Attack ( bool  playSound)
inline

Definition at line 43 of file MyWolfTarget.cs.

override void SpaceEngineers.Game.AI.MyWolfTarget.Update ( )
inlinevirtual

Reimplemented from Sandbox.Game.AI.MyAiTargetBase.

Definition at line 68 of file MyWolfTarget.cs.

Property Documentation

bool SpaceEngineers.Game.AI.MyWolfTarget.IsAttacking
get

Definition at line 21 of file MyWolfTarget.cs.


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