Ejemplo n.º 1
0
 public Memento(int question, int category, List<PlayerViewModel> players, PlayerViewModel activePlayer)
 {
     this.question = question;
     this.category = category;
     this.players = players;
     this.activePlayer = activePlayer;
 }
Ejemplo n.º 2
0
 public void IncreaseScore(PlayerViewModel player)
 {
     player.Score += CurrentQuestion;
     Next();
 }
Ejemplo n.º 3
0
 public void DecreaseScore(PlayerViewModel player)
 {
     player.Score -= CurrentQuestion;
     if (this.players.All(p => p.State == false))
         Next();
 }