예제 #1
0
 public FinishDayResult Execute(GameId gameId)
 {
     Initialize(gameId);
     Game.Calculate();
     return new FinishDayResult(
         Game.CurrentDay.Event.Name,
         Game.CurrentDay.Event.ResultMessage,
         Game.CurrentDay.Results
         );
 }
예제 #2
0
 public FinishDayResult Execute(GameId gameId)
 {
     Initialize(gameId);
     Game.Calculate();
     return(new FinishDayResult(
                Game.CurrentDay.Event.Name,
                Game.CurrentDay.Event.ResultMessage,
                Game.CurrentDay.Results
                ));
 }
예제 #3
0
 public NextDayResult Execute(GameId gameId)
 {
     Initialize(gameId);
     Game.AddDay();
     return new NextDayResult(Game.CurrentDay);
 }
예제 #4
0
 protected void Initialize(GameId gameId)
 {
     Game = Repository.Get(g => g.Id == gameId.Id);
 }
예제 #5
0
 public NextDayResult Execute(GameId gameId)
 {
     Initialize(gameId);
     Game.AddDay();
     return(new NextDayResult(Game.CurrentDay));
 }