Esempio n. 1
0
 public FinishedGame(GameId id, List <PlayerId> players, List <PlayerId> winners, List <GameEvent> uncommitedEvents)
     : base(id)
 {
     Players          = players;
     Winners          = winners;
     UncommitedEvents = uncommitedEvents;
 }
Esempio n. 2
0
        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;
        }
Esempio n. 3
0
 public UninitializedGame(GameId id)
     : base(id)
 {
 }
Esempio n. 4
0
 public static UninitializedGame Create(GameId id)
 {
     return(new UninitializedGame(id));
 }
Esempio n. 5
0
 protected Game(GameId id)
     : base(id)
 {
 }
Esempio n. 6
0
 public TurnTimedOut(GameId id)
     : base(id)
 {
 }
Esempio n. 7
0
 public GameFinished(GameId id, List <PlayerId> winners)
     : base(id)
 {
     Winners = winners;
 }
Esempio n. 8
0
 public TurnCountdownUpdated(GameId id, int secondsLeft)
     : base(id)
 {
     SecondsLeft = secondsLeft;
 }
Esempio n. 9
0
 public TurnChanged(GameId id, Turn turn)
     : base(id)
 {
     Turn = turn;
 }
Esempio n. 10
0
 public GameStarted(GameId id, List <PlayerId> players, Turn initialTurn)
     : base(id)
 {
     Players     = players;
     InitialTurn = initialTurn;
 }
Esempio n. 11
0
 public DiceRolled(GameId id, int rolledNumber, PlayerId player)
     : base(id)
 {
     RolledNumber = rolledNumber;
     Player       = player;
 }
Esempio n. 12
0
 protected GameEvent(GameId id)
 {
     Id = id;
 }