Пример #1
0
 public void takeAction(Move m)
 {
     if (GameController.currentPlayer == this)
     {
         movesTaken[(int)m.moveType]++;
         m.takeAction();
     }
     else throw new Exception(this + " tried to take its turn out of order!");
 }