示例#1
0
 public Variant960Controller(IUserRepository _userRepository, IPersistentLoginHandler _loginHandler, IRandomProvider _randomProvider, IGameRepository _gameRepository, IMoveCollectionTransformer _moveCollectionTransformer, IGameConstructor _gameConstructor) : base(_userRepository, _loginHandler)
 {
     randomProvider            = _randomProvider;
     gameRepository            = _gameRepository;
     moveCollectionTransformer = _moveCollectionTransformer;
     gameConstructor           = _gameConstructor;
 }
 public EndgamesController(IUserRepository _userRepository,
                           IPersistentLoginHandler _loginHandler,
                           IEndgameTrainingSessionRepository _endgameTrainingSessionRepository,
                           IMoveCollectionTransformer _moveCollectionTransformer) : base(_userRepository, _loginHandler)
 {
     endgameTrainingSessionRepository = _endgameTrainingSessionRepository;
     moveCollectionTransformer        = _moveCollectionTransformer;
 }
示例#3
0
 public SocketController(IUserRepository _userRepository, IPersistentLoginHandler _loginHandler, ILobbySocketHandlerRepository _lobbySocketHandlerRepository, ILobbySeekRepository _seekRepository, IGameRepository _gameRepository, IRandomProvider _randomProvider, IGameSocketHandlerRepository _gameSocketHandlerRepository, IGameRepoForSocketHandlers _gameRepoForSocketHandlers, IMoveCollectionTransformer _moveCollectionTransformer)
     : base(_userRepository, _loginHandler)
 {
     lobbySocketHandlerRepository = _lobbySocketHandlerRepository;
     seekRepository = _seekRepository;
     gameRepository = _gameRepository;
     randomProvider = _randomProvider;
     gameSocketHandlerRepository = _gameSocketHandlerRepository;
     gameRepoForSocketHandlers   = _gameRepoForSocketHandlers;
     moveCollectionTransformer   = _moveCollectionTransformer;
 }
 public GameSocketHandler(WebSocket socket, GamePlayer _client, IGameRepoForSocketHandlers _gameRepository, IGameSocketHandlerRepository _handlerRepository, IMoveCollectionTransformer _moveCollectionTransformer, IUserRepository _userRepository, IRandomProvider _randomProvider, string _gameId)
 {
     ws                        = socket;
     client                    = _client;
     gameRepository            = _gameRepository;
     handlerRepository         = _handlerRepository;
     moveCollectionTransformer = _moveCollectionTransformer;
     userRepository            = _userRepository;
     randomProvider            = _randomProvider;
     gameId                    = _gameId;
     Disposed                  = false;
 }
示例#5
0
 public TimedTrainingController(IUserRepository _userRepository,
                                ITimedTrainingScoreRepository _timedTrainingRepository,
                                IPositionRepository _positionRepository,
                                ITimedTrainingSessionRepository _timedTrainingSessionRepository,
                                ITimedTrainingScoreRepository _timedTrainingScoreRepository,
                                IMoveCollectionTransformer _moveCollectionTransformer,
                                IPersistentLoginHandler _loginHandler,
                                IGameConstructor _gameConstructor)
     : base(_userRepository, _loginHandler)
 {
     timedTrainingRepository        = _timedTrainingRepository;
     positionRepository             = _positionRepository;
     timedTrainingSessionRepository = _timedTrainingSessionRepository;
     timedTrainingScoreRepository   = _timedTrainingScoreRepository;
     moveCollectionTransformer      = _moveCollectionTransformer;
     loginHandler    = _loginHandler;
     gameConstructor = _gameConstructor;
 }
示例#6
0
 public PuzzleController(IPuzzlesBeingEditedRepository _puzzlesBeingEdited,
                         IPuzzleRepository _puzzleRepository,
                         IUserRepository _userRepository,
                         IRatingUpdater _ratingUpdater,
                         IMoveCollectionTransformer _movecollectionTransformer,
                         IPuzzleTrainingSessionRepository _puzzleTrainingSessionRepository,
                         ICounterRepository _counterRepository,
                         IPersistentLoginHandler _loginHandler,
                         IGameConstructor _gameConstructor) : base(_userRepository, _loginHandler)
 {
     puzzlesBeingEdited              = _puzzlesBeingEdited;
     puzzleRepository                = _puzzleRepository;
     ratingUpdater                   = _ratingUpdater;
     moveCollectionTransformer       = _movecollectionTransformer;
     puzzleTrainingSessionRepository = _puzzleTrainingSessionRepository;
     counterRepository               = _counterRepository;
     gameConstructor                 = _gameConstructor;
 }