C# Class PacMan.EnemyAI

显示文件 Open project: Confirmit/Students

Public Methods

Method Description
EnemyAI ( List vertexCoordinates ) : System
GetNextStep ( Point firstNodeCoordinate, Point secondNodeCoordinate ) : Point

Private Methods

Method Description
CalculateNextStep ( Node guide ) : Point
CreateGraph ( ) : List
FindNextStep ( Node firstNode, Node secondNode ) : Point
GetNeighbor ( Point _vertexCoordinate, Point offset ) : Node
SearchNode ( Point node ) : Node

Method Details

EnemyAI() public method

public EnemyAI ( List vertexCoordinates ) : System
vertexCoordinates List
return System

GetNextStep() public method

public GetNextStep ( Point firstNodeCoordinate, Point secondNodeCoordinate ) : Point
firstNodeCoordinate Point
secondNodeCoordinate Point
return Point