Esempio n. 1
0
 public Soldier(Location io_cell, EnumCharsInBoard.enumCharsInBoard i_sign, EnumDirection.enumDirection i_Direction, bool i_isKing)
 {
     m_Cell    = io_cell;
     Sign      = i_sign;
     m_IsKing  = i_isKing;
     Direction = i_Direction;
 }
Esempio n. 2
0
 public Player(string io_name, bool io_isFirsPlayer, Board board, bool io_IsComputer, EnumCharsInBoard.enumCharsInBoard i_PlayerSign)
 {
     Name = io_name;
     setGameForPlayer(io_isFirsPlayer, board);
     IsComputer = io_IsComputer;
     PlayerSign = i_PlayerSign;
 }
Esempio n. 3
0
 public Soldier(Location io_cell, EnumCharsInBoard.enumCharsInBoard i_sign, EnumDirection.enumDirection i_Direction)
 {
     m_Cell    = io_cell;
     Sign      = i_sign;
     Direction = i_Direction;
 }
Esempio n. 4
0
 private void setLinesAndSignForPlayer(out int io_StartLine, out int io_FinishLine, out EnumCharsInBoard.enumCharsInBoard io_soldirSign, out EnumDirection.enumDirection io_Direction, bool io_isFirsPlayer, Board board)
 {
     if (io_isFirsPlayer)
     {
         io_StartLine  = 0;
         io_FinishLine = (board.Size - 2) / 2;
         io_soldirSign = EnumCharsInBoard.enumCharsInBoard.Player1Soldier;
         io_Direction  = EnumDirection.enumDirection.ForwardToDown;
     }
     else
     {
         io_StartLine  = ((board.Size - 2) / 2) + 2;
         io_FinishLine = io_StartLine + ((board.Size - 2) / 2);
         io_soldirSign = EnumCharsInBoard.enumCharsInBoard.Player2Soldier;
         io_Direction  = EnumDirection.enumDirection.DownToForward;
     }
 }