C# Class AStarXNA.GridCell

Inheritance: GameObject
Show file Open project: dreasgrech/AStarXNA Class Usage Examples

Public Methods

Method Description
Clear ( ) : void
Draw ( GameTime gameTime ) : void
GetPath ( ) : IEnumerable
GridCell ( Microsoft.Xna.Framework.Game game, GridCellType type, Point position, Point screenCoordinates, int width, int height ) : System
IsOrthagonalWith ( GridCell otherCell ) : bool
Reset ( ) : void
ToString ( ) : string

Private Methods

Method Description
GetColor ( GridCellType type ) : Color

Method Details

Clear() public method

public Clear ( ) : void
return void

Draw() public method

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

GetPath() public method

public GetPath ( ) : IEnumerable
return IEnumerable

GridCell() public method

public GridCell ( Microsoft.Xna.Framework.Game game, GridCellType type, Point position, Point screenCoordinates, int width, int height ) : System
game Microsoft.Xna.Framework.Game
type GridCellType
position Point
screenCoordinates Point
width int
height int
return System

IsOrthagonalWith() public method

public IsOrthagonalWith ( GridCell otherCell ) : bool
otherCell GridCell
return bool

Reset() public method

public Reset ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string