Exemplo n.º 1
0
 // Constructors:
 public CheckersPiece(ePieceKind i_PieceKind, ushort i_RowIndex, ushort i_ColIndex) // Constructor.
 {
     m_IsKing    = false;
     m_PieceKind = i_PieceKind;
     m_IsAlive   = true;
     m_RowIndex  = i_RowIndex;
     m_ColIndex  = i_ColIndex;
 }
Exemplo n.º 2
0
        private void becomeKing() // makes a checker piece a king.
        {
            if (m_PieceKind == ePieceKind.MainPlayerTool)
            {
                m_PieceKind = ePieceKind.MainPlayerKing;
            }
            else
            {
                m_PieceKind = ePieceKind.SecondPlayerKing;
            }

            m_IsKing = true;
        }