예제 #1
0
파일: Unit.cs 프로젝트: sdob/L5R
 private Unit(L5R.Card personality, L5R.Player unitOwner, int unitNum)
 {
     cardsInUnit = new List <L5R.Card>();
     cardsInUnit.Add(personality);
     this.owner          = unitOwner;
     this.unitNumber     = unitNum;
     this.locationOfUnit = locHome;
 }
예제 #2
0
파일: GameState.cs 프로젝트: sdob/L5R
 /** Swaps active players
  */
 private void swapActivePlayer()
 {
     if (activePlayer == player1)
     {
         activePlayer = player2;
     }
     else
     {
         activePlayer = player1;
     }
 }
예제 #3
0
파일: GameState.cs 프로젝트: sdob/L5R
        public GameState(L5R.Player p1, L5R.Player p2)
        {
            this.turnCounter = 1;

            this.player1 = p1;
            this.player2 = p2;
            //place test to see who active player should be;
            this.activePlayer = p1;

            this.gameOver = false;
            this.unitID   = 0;
        }