コード例 #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));
 }