protected Game(Passenger player, GamePair gamePair)
 {
     Player       = player;
     GameStatus   = GameStatus.Created;
     IsReady      = false;
     PlayerStatus = PlayerStatus.Unfinished;
     GamePair     = gamePair;
 }
Esempio n. 2
0
 public HangmanGame(Passenger player, GamePair gamePair) : base(player, gamePair)
 {
     Guesses = new List <Guess>();
     Word    = "";
 }
 public void UpdateWaitingStatus()
 {
     ChangeIsReady();
     GamePair.UpdateWaitingStatus();
 }
 public abstract List <Game> CreateGamePair(Passenger passenger1, Passenger passenger2, GamePair gamePair);
 public override List <Game> CreateGamePair(Passenger passenger1, Passenger passenger2, GamePair gamePair)
 {
     return(new List <Game>()
     {
         new HangmanGame(passenger1, null), new HangmanGame(passenger2, null)
     });
 }