C# Class GameEntities.TankGameUnitAI

Inheritance: AI
Show file Open project: DarrenHassan/GDM4242-GroupD Class Usage Examples

Public Methods

Method Description
ActivateWayMovement ( ) : void
IsActive ( ) : bool
OnNotifyFromAllyOnEnemy ( Vec3 enemyPos ) : void
TankGameUnitAI ( ) : System

Protected Methods

Method Description
OnControlledObjectChange ( Unit oldObject ) : void
OnControlledObjectRender ( Engine.Camera camera ) : void
OnDestroy ( ) : void
OnPostCreate ( bool loaded ) : void

Overridden from Engine.EntitySystem.Entity.OnPostCreate(Boolean).

OnRelatedEntityDelete ( Entity entity ) : void
OnTick ( ) : void

Private Methods

Method Description
ActivateRegion ( ) : void
ActivationRegion_ObjectIn ( Entity entity, MapObject obj ) : void
CalculateTargetPosition ( AttackTask attackTask ) : Vec3
ControlledObject_Damage ( Dynamic entity, MapObject prejudicial, Vec3 pos, float damage ) : void
DoAttackTask ( Weapon weapon, Dynamic target ) : void
DoAttackTask ( Weapon weapon, Vec3 target ) : void
DoGeneralTask ( GeneralTaskTypes type, MapCurve way ) : void
DoMoveTask ( Vec3 pos ) : void
FindEnemy ( float radius ) : Dynamic
FindUnitWeapons ( ) : void
GetAttackObjectPriority ( Unit obj ) : float
IsWeaponDirectedToTarget ( AttackTask attackTask ) : bool
NotifyAlliesOnEnemy ( Vec3 enemyPos ) : void
ResetAllAttackTasks ( ) : void
ResetAttackTask ( AttackTask task ) : void
ResetMoveTask ( ) : void
TickAttackTasks ( ) : void
UpdateAttackTasksControlKeys ( ) : void
UpdateGeneralTask ( ) : void
UpdateMoveTaskControlKeys ( ) : void

Method Details

ActivateWayMovement() public method

public ActivateWayMovement ( ) : void
return void

IsActive() public method

public IsActive ( ) : bool
return bool

OnControlledObjectChange() protected method

protected OnControlledObjectChange ( Unit oldObject ) : void
oldObject Unit
return void

OnControlledObjectRender() protected method

protected OnControlledObjectRender ( Engine.Camera camera ) : void
camera Engine.Camera
return void

OnDestroy() protected method

protected OnDestroy ( ) : void
return void

OnNotifyFromAllyOnEnemy() public method

public OnNotifyFromAllyOnEnemy ( Vec3 enemyPos ) : void
enemyPos Vec3
return void

OnPostCreate() protected method

Overridden from Engine.EntitySystem.Entity.OnPostCreate(Boolean).
protected OnPostCreate ( bool loaded ) : void
loaded bool
return void

OnRelatedEntityDelete() protected method

protected OnRelatedEntityDelete ( Entity entity ) : void
entity Entity
return void

OnTick() protected method

protected OnTick ( ) : void
return void

TankGameUnitAI() public method

public TankGameUnitAI ( ) : System
return System