public GameService(IStoreEvents store, IRepository <Game> repository, IRepository <User> userRepository, IDomainService domain, GameSettings gameSettings, IGameDomainService gameDomainService, IRepository <Game> gameRepository, ICastleTroopTypeService castleTroopTypeService)
     : base(repository)
 {
     _store                  = store;
     _userRepository         = userRepository;
     _domain                 = domain;
     _gameSettings           = gameSettings;
     _gameDomainService      = gameDomainService;
     _gameRepository         = gameRepository;
     _castleTroopTypeService = castleTroopTypeService;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="gameService"></param>
 /// <param name="userService"></param>
 /// <param name="directionProvider"></param>
 /// <param name="gameSettings"></param>
 /// <param name="gameAiSettings"></param>
 /// <param name="notifySettings"></param>
 /// <param name="castleTroopTypeService"></param>
 /// <param name="armySettingService"></param>
 public GameController(IGameService gameService, IUserService userService, IDirectionProvider directionProvider, GameSettings gameSettings, GameAiSettings gameAiSettings, NotifySettings notifySettings, ICastleTroopTypeService castleTroopTypeService, IGameArmySettingService armySettingService, ICastleDirectionService directionService)
 {
     _gameService            = gameService;
     _userService            = userService;
     _directionProvider      = directionProvider;
     _gameSettings           = gameSettings;
     _gameAiSettings         = gameAiSettings;
     _notifySettings         = notifySettings;
     _castleTroopTypeService = castleTroopTypeService;
     _armySettingService     = armySettingService;
     _directionService       = directionService;
     R = new Random();
 }
Exemple #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="castleTroopTypeService"></param>
 /// <param name="gameArmySettingService"></param>
 public SettingController(ICastleTroopTypeService castleTroopTypeService, IGameArmySettingService gameArmySettingService)
 {
     _castleTroopTypeService = castleTroopTypeService;
     _gameArmySettingService = gameArmySettingService;
 }