C# 클래스 PushFrenzy.Rules.Board

파일 보기 프로젝트 열기: paulbatum/PushFrenzy 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

AddNewPieceAtRandomEmptySlot() 공개 메소드

public AddNewPieceAtRandomEmptySlot ( Player owner ) : Slot
owner Player
리턴 Slot

AddNewPieceToSlot() 공개 메소드

public AddNewPieceToSlot ( Slot slot, Player owner ) : void
slot Slot
owner Player
리턴 void

Board() 공개 메소드

public Board ( int width, int height ) : System
width int
height int
리턴 System

Column() 공개 메소드

public Column ( int x ) : IEnumerable
x int
리턴 IEnumerable

GetRandomEmptySlot() 공개 메소드

public GetRandomEmptySlot ( ) : Slot
리턴 Slot

GetSlotForDirection() 공개 메소드

public GetSlotForDirection ( Slot origin, Direction direction ) : Slot
origin Slot
direction Direction
리턴 Slot

MovePieceToSlot() 공개 메소드

public MovePieceToSlot ( Slot origin, Slot destination, IMessageLog log ) : void
origin Slot
destination Slot
log IMessageLog
리턴 void

RemovePlayerAndPieces() 공개 메소드

public RemovePlayerAndPieces ( Player player ) : void
player Player
리턴 void

Row() 공개 메소드

public Row ( int y ) : IEnumerable
y int
리턴 IEnumerable

SlotAt() 공개 메소드

public SlotAt ( int x, int y ) : Slot
x int
y int
리턴 Slot