C# Class MyPolarBear.Pathfinding.AGrid

Show file Open project: sgdc/sgdc-old Class Usage Examples

Public Properties

Property Type Description
mGrid ].ANode[

Public Methods

Method Description
GetInstance ( ) : AGrid
addResource ( LevelElement ele ) : void
getPath ( Vector2 start, Vector2 end ) : List
getPath ( Vector2 start, int nodeType ) : List
setLevel ( List level ) : void

Private Methods

Method Description
AGrid ( ) : System

Method Details

GetInstance() public static method

public static GetInstance ( ) : AGrid
return AGrid

addResource() public method

public addResource ( LevelElement ele ) : void
ele LevelElement
return void

getPath() public method

public getPath ( Vector2 start, Vector2 end ) : List
start Vector2
end Vector2
return List

getPath() public method

public getPath ( Vector2 start, int nodeType ) : List
start Vector2
nodeType int
return List

setLevel() public method

public setLevel ( List level ) : void
level List
return void

Property Details

mGrid public property

public ANode[,] mGrid
return ].ANode[