Exemplo n.º 1
0
 public Checker(ePlayerColor i_Color, SquarePosition i_Position, eCheckerType i_Type = eCheckerType.Soldier)
 {
     m_Type          = i_Type;
     m_Color         = i_Color;
     m_Position      = i_Position;
     m_PossibleMoves = new List <Move>(4);        // maximum possible moves for one checker (when king)
 }
Exemplo n.º 2
0
 public Move(SquarePosition i_Start, SquarePosition i_End)
 {
     m_Start = i_Start;
     m_End   = i_End;
 }
Exemplo n.º 3
0
 //copy constructor
 public SquarePosition(SquarePosition i_squarePosition)
 {
     m_x = i_squarePosition.X;
     m_y = i_squarePosition.Y;
 }