C# Class SnakeBattleNet.Core.BattleField

Mostrar archivo Open project: FoC-/SnakeBattle.Net Class Usage Examples

Public Methods

Method Description
BattleField ( ) : System
RelativeCell ( Direction direction, Position fieldHead, Position chipHead, Position chipCell ) : Cell
ToString ( ) : string
this ( int x, int y ) : Content

Private Methods

Method Description
CreateEmpty ( ) : void
CreateWalls ( ) : void
EastView ( Position fieldHead, Position chipHead, Position chipCell ) : Cell
NorthView ( Position fieldHead, Position chipHead, Position chipCell ) : Cell
SouthView ( Position fieldHead, Position chipHead, Position chipCell ) : Cell
WestView ( Position fieldHead, Position chipHead, Position chipCell ) : Cell

Method Details

BattleField() public method

public BattleField ( ) : System
return System

RelativeCell() public method

public RelativeCell ( Direction direction, Position fieldHead, Position chipHead, Position chipCell ) : Cell
direction Direction
fieldHead SnakeBattleNet.Core.Contract.Position
chipHead SnakeBattleNet.Core.Contract.Position
chipCell SnakeBattleNet.Core.Contract.Position
return Cell

ToString() public method

public ToString ( ) : string
return string

this() public method

public this ( int x, int y ) : Content
x int
y int
return Content