Esempio n. 1
0
File: Unit.cs Progetto: 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;
 }
Esempio n. 2
0
 /** Swaps active players
  */
 private void swapActivePlayer()
 {
     if (activePlayer == player1)
     {
         activePlayer = player2;
     }
     else
     {
         activePlayer = player1;
     }
 }
Esempio n. 3
0
        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;
        }