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