C# Class SmartboyDevelopments.Haxxit.MonoGame.PlayerAI

Inheritance: Player
显示文件 Open project: smartboyathome/Haxxit

Public Methods

Method Description
HandleAITurn ( Haxxit currentMap, GameStates newBackgroundState ) : void
IsInBounds ( Haxxit point ) : bool
PlayerAI ( string name = "" ) : System

Private Methods

Method Description
AStar ( Haxxit program, Haxxit destination ) : Stack
AStarHelp ( AINodeData currentNode, AINodeData checkNode, List openList, List closeList, Haxxit program, Haxxit destination ) : void
BehaviorAttackNearest ( Haxxit program ) : void
BehaviorDefendObjective ( Haxxit program ) : void
BehaviorDoNothing ( Haxxit program ) : void
BehaviorFlee ( Haxxit program ) : void
BehaviorMoveLeft ( Haxxit program ) : void
ClearAStarData ( List openList, List closeList ) : void
DecideBehavior ( Haxxit program ) : ProgramBehavior
FindClosestEnemy ( Haxxit program ) : Haxxit.Maps.Point
FindCommandOptions ( Haxxit program, Commands command ) : PrioritizedCommand
FindNodesInRange ( Haxxit program, Haxxit target, int range ) : List
GetActualCommands ( Haxxit program ) : List
GetMapData ( ) : void
PerformCommand ( Haxxit target, Haxxit source, Commands command ) : CommandCode
PerformMoves ( Haxxit program, Queue path ) : MoveCode
PlanTurn ( ) : void
SendActions ( ) : void

Method Details

HandleAITurn() public method

public HandleAITurn ( Haxxit currentMap, GameStates newBackgroundState ) : void
currentMap Haxxit
newBackgroundState GameStates
return void

IsInBounds() public method

public IsInBounds ( Haxxit point ) : bool
point Haxxit
return bool

PlayerAI() public method

public PlayerAI ( string name = "" ) : System
name string
return System