Ejemplo n.º 1
0
 public Card(Player owner)
 {
     this.Owner = owner;
     if (owner != null)
     {
         this.observer = owner.Match.Observer;
     }
 }
Ejemplo n.º 2
0
 public Match(List<Player> players)
 {
     if(players.Count != Global.NumPlayers)
     {
         throw new Exception("Unexpected number of players");
     }
     this.Players = players;
     for(int i = 0; i < Global.NumPlayers; i++)
     {
         Players[i].Opponent = Players[(i * -1) + 1];
         Players[i].Match = this;
     }
     Observer = new MatchObserver(this);
     Players[0].BeginTurn();
 }