public AwaitingPlayersReadyState(GameData gameData) : base(gameData)
 {
     gameData.VotingReady = VotingFactory.CreateVoting(gameData.PlayerManager.GetAlivePlayers());
 }
示例#2
0
        public DrawState(GameData gameData) : base(gameData)
        {
            var playersForVote = gameData.PlayerManager.GetAlivePlayers().Where(x => gameData.PlayerManager.GetDrawPlayers().SingleOrDefault(y => y.Name == x.Name) == null).ToList();

            gameData.VotingDraw = VotingFactory.CreateVoting(playersForVote);
        }
示例#3
0
 public MafiaKillsState(GameData gameData) : base(gameData)
 {
     gameData.VotingKilling = VotingFactory.CreateVoting(gameData.PlayerManager.GetAliveMafia());
 }
示例#4
0
 public VotingState(GameData gameData) : base(gameData)
 {
     gameData.VotingMain = VotingFactory.CreateVoting(gameData.PlayerManager.GetAlivePlayers());
 }
示例#5
0
 public FinalState(GameData gameData) : base(gameData)
 {
     gameData.VotingReadyForNextRound = VotingFactory.CreateVoting(gameData.PlayerManager.GetAlivePlayers());
 }
示例#6
0
 public DiscussionState(GameData gameData) : base(gameData)
 {
     gameData.VotingDiscussionFinished = VotingFactory.CreateVoting(gameData.PlayerManager.GetAlivePlayers());
 }