예제 #1
0
파일: Move.cs 프로젝트: Zeplar/Splendor
 public static int getInt(Move m)
 {
     return dictMoveInt[m];
 }
예제 #2
0
파일: Player.cs 프로젝트: Zeplar/Splendor
 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!");
 }