示例#1
0
 /* Determined by:
  * - Side (Black / White)
  * - Direction of travel (Up / Down / In both directions (king))
  * - Combined position (Position on the screen, size on the screen, position on the board)
  */
 public BaseChecker(CheckerSide side, CheckerMoveDirection direction, CheckersCoordinateSet position)
 {
     this.Side      = side;
     this.Position  = position;
     this.ZOrder    = 1;
     this.Direction = direction;
 }
示例#2
0
 public Pawn(CheckerSide side, CheckerMoveDirection direction, CheckersCoordinateSet position) : base(side, direction, position)
 {
     this.TurnRange = 1; // Only walks 1 cell
 }