C# Class PushFrenzy.Rules.Board

Afficher le fichier Open project: paulbatum/PushFrenzy Class Usage Examples

Méthodes publiques

Méthode Description
AddNewPieceAtRandomEmptySlot ( Player owner ) : Slot
AddNewPieceToSlot ( Slot slot, Player owner ) : void
Board ( int width, int height ) : System
Column ( int x ) : IEnumerable
GetRandomEmptySlot ( ) : Slot
GetSlotForDirection ( Slot origin, Direction direction ) : Slot
MovePieceToSlot ( Slot origin, Slot destination, IMessageLog log ) : void
RemovePlayerAndPieces ( Player player ) : void
Row ( int y ) : IEnumerable
SlotAt ( int x, int y ) : Slot

Method Details

AddNewPieceAtRandomEmptySlot() public méthode

public AddNewPieceAtRandomEmptySlot ( Player owner ) : Slot
owner Player
Résultat Slot

AddNewPieceToSlot() public méthode

public AddNewPieceToSlot ( Slot slot, Player owner ) : void
slot Slot
owner Player
Résultat void

Board() public méthode

public Board ( int width, int height ) : System
width int
height int
Résultat System

Column() public méthode

public Column ( int x ) : IEnumerable
x int
Résultat IEnumerable

GetRandomEmptySlot() public méthode

public GetRandomEmptySlot ( ) : Slot
Résultat Slot

GetSlotForDirection() public méthode

public GetSlotForDirection ( Slot origin, Direction direction ) : Slot
origin Slot
direction Direction
Résultat Slot

MovePieceToSlot() public méthode

public MovePieceToSlot ( Slot origin, Slot destination, IMessageLog log ) : void
origin Slot
destination Slot
log IMessageLog
Résultat void

RemovePlayerAndPieces() public méthode

public RemovePlayerAndPieces ( Player player ) : void
player Player
Résultat void

Row() public méthode

public Row ( int y ) : IEnumerable
y int
Résultat IEnumerable

SlotAt() public méthode

public SlotAt ( int x, int y ) : Slot
x int
y int
Résultat Slot