public FinishedGame(GameId id, List <PlayerId> players, List <PlayerId> winners, List <GameEvent> uncommitedEvents) : base(id) { Players = players; Winners = winners; UncommitedEvents = uncommitedEvents; }
public RunningGame(GameId id, List <PlayerId> players, Turn turn, List <GameEvent> uncommitedEvents) : base(id) { _random = new Random(); _rolledNumbers = new List <KeyValuePair <PlayerId, int> >(); _players = players; _turn = turn; UncommitedEvents = uncommitedEvents; }
public UninitializedGame(GameId id) : base(id) { }
public static UninitializedGame Create(GameId id) { return(new UninitializedGame(id)); }
protected Game(GameId id) : base(id) { }
public TurnTimedOut(GameId id) : base(id) { }
public GameFinished(GameId id, List <PlayerId> winners) : base(id) { Winners = winners; }
public TurnCountdownUpdated(GameId id, int secondsLeft) : base(id) { SecondsLeft = secondsLeft; }
public TurnChanged(GameId id, Turn turn) : base(id) { Turn = turn; }
public GameStarted(GameId id, List <PlayerId> players, Turn initialTurn) : base(id) { Players = players; InitialTurn = initialTurn; }
public DiceRolled(GameId id, int rolledNumber, PlayerId player) : base(id) { RolledNumber = rolledNumber; Player = player; }
protected GameEvent(GameId id) { Id = id; }