public AwaitingPlayersReadyState(GameData gameData) : base(gameData) { gameData.VotingReady = VotingFactory.CreateVoting(gameData.PlayerManager.GetAlivePlayers()); }
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); }
public MafiaKillsState(GameData gameData) : base(gameData) { gameData.VotingKilling = VotingFactory.CreateVoting(gameData.PlayerManager.GetAliveMafia()); }
public VotingState(GameData gameData) : base(gameData) { gameData.VotingMain = VotingFactory.CreateVoting(gameData.PlayerManager.GetAlivePlayers()); }
public FinalState(GameData gameData) : base(gameData) { gameData.VotingReadyForNextRound = VotingFactory.CreateVoting(gameData.PlayerManager.GetAlivePlayers()); }
public DiscussionState(GameData gameData) : base(gameData) { gameData.VotingDiscussionFinished = VotingFactory.CreateVoting(gameData.PlayerManager.GetAlivePlayers()); }