コード例 #1
0
 public MapRendererFactory(IEndlessGameProvider endlessGameProvider,
                           IRenderTargetFactory renderTargetFactory,
                           IMapEntityRendererProvider mapEntityRendererProvider,
                           ICharacterProvider characterProvider,
                           ICurrentMapProvider currentMapProvider,
                           IMapRenderDistanceCalculator mapRenderDistanceCalculator,
                           ICharacterRendererUpdater characterRendererUpdater,
                           INPCRendererUpdater npcRendererUpdater,
                           IDoorStateUpdater doorStateUpdater,
                           IChatBubbleUpdater chatBubbleUpdater,
                           IConfigurationProvider configurationProvider,
                           IMouseCursorRendererFactory mouseCursorRendererFactory)
 {
     _endlessGameProvider         = endlessGameProvider;
     _renderTargetFactory         = renderTargetFactory;
     _mapEntityRendererProvider   = mapEntityRendererProvider;
     _characterProvider           = characterProvider;
     _currentMapProvider          = currentMapProvider;
     _mapRenderDistanceCalculator = mapRenderDistanceCalculator;
     _characterRendererUpdater    = characterRendererUpdater;
     _npcRendererUpdater          = npcRendererUpdater;
     _doorStateUpdater            = doorStateUpdater;
     _chatBubbleUpdater           = chatBubbleUpdater;
     _configurationProvider       = configurationProvider;
     _mouseCursorRendererFactory  = mouseCursorRendererFactory;
 }
コード例 #2
0
 public UsageTrackerComponent(IEndlessGameProvider gameProvider,
                              ICharacterRepository characterRepository)
     : base((Game)gameProvider.Game)
 {
     _gameProvider        = gameProvider;
     _characterRepository = characterRepository;
     _lastUpdateTime      = DateTime.Now;
 }
コード例 #3
0
 public NPCAnimator(IEndlessGameProvider gameProvider,
                    ICurrentMapStateRepository currentMapStateRepository)
     : base((Game)gameProvider.Game)
 {
     _currentMapStateRepository = currentMapStateRepository;
     _npcStartWalkingTimes      = new List <RenderFrameActionTime>();
     _npcStartAttackingTimes    = new List <RenderFrameActionTime>();
 }
コード例 #4
0
        public PreviousKeyStateTracker(
            IEndlessGameProvider endlessGameProvider,
            IKeyStateRepository keyStateRepository)
            : base((Game)endlessGameProvider.Game)
        {
            _keyStateRepository = keyStateRepository;

            UpdateOrder = int.MaxValue;
        }
コード例 #5
0
 public ControlKeyHandler(IEndlessGameProvider endlessGameProvider,
                          IKeyStateProvider keyStateProvider,
                          IUserInputTimeRepository userInputTimeRepository,
                          IControlKeyController controlKeyController,
                          ICurrentMapStateProvider currentMapStateProvider)
     : base(endlessGameProvider, keyStateProvider, userInputTimeRepository, currentMapStateProvider)
 {
     _controlKeyController = controlKeyController;
 }
コード例 #6
0
 public GameStateActions(IGameStateRepository gameStateRepository,
                         IControlSetRepository controlSetRepository,
                         IControlSetFactory controlSetFactory,
                         IEndlessGameProvider endlessGameProvider)
 {
     _gameStateRepository  = gameStateRepository;
     _controlSetRepository = controlSetRepository;
     _controlSetFactory    = controlSetFactory;
     _endlessGameProvider  = endlessGameProvider;
 }
コード例 #7
0
 public TestModeLauncher(IEndlessGameProvider endlessGameProvider,
                         ICharacterRendererFactory characterRendererFactory,
                         IEIFFileProvider eifFileProvider,
                         IGameStateProvider gameStateProvider)
 {
     _endlessGameProvider = endlessGameProvider;
     _characterRendererFactory = characterRendererFactory;
     _eifFileProvider = eifFileProvider;
     _gameStateProvider = gameStateProvider;
 }
コード例 #8
0
 protected InputHandlerBase(IEndlessGameProvider endlessGameProvider,
                            IKeyStateProvider keyStateProvider,
                            IUserInputTimeRepository userInputTimeRepository,
                            ICurrentMapStateProvider mapStateProvider)
 {
     _endlessGameProvider     = endlessGameProvider;
     _keyStateProvider        = keyStateProvider;
     _userInputTimeRepository = userInputTimeRepository;
     _mapStateProvider        = mapStateProvider;
 }
コード例 #9
0
        public CharacterAnimator(IEndlessGameProvider gameProvider,
                                 ICharacterRepository characterRepository,
                                 ICurrentMapStateRepository currentMapStateRepository)
            : base((Game)gameProvider.Game)
        {
            _characterRepository       = characterRepository;
            _currentMapStateRepository = currentMapStateRepository;

            _otherPlayerStartWalkingTimes = new List <RenderFrameActionTime>();

            _otherPlayerStartAttackingTimes = new List <RenderFrameActionTime>();
        }
コード例 #10
0
 public NPCRendererFactory(IEndlessGameProvider endlessGameProvider,
                           ICharacterRendererProvider characterRendererProvider,
                           IENFFileProvider enfFileProvider,
                           INPCSpriteSheet npcSpriteSheet,
                           IRenderOffsetCalculator renderOffsetCalculator)
 {
     _endlessGameProvider       = endlessGameProvider;
     _characterRendererProvider = characterRendererProvider;
     _enfFileProvider           = enfFileProvider;
     _npcSpriteSheet            = npcSpriteSheet;
     _renderOffsetCalculator    = renderOffsetCalculator;
 }
コード例 #11
0
 public UserInputHandlerFactory(IEndlessGameProvider endlessGameProvider,
                                IKeyStateProvider keyStateProvider,
                                IUserInputTimeRepository userInputTimeRepository,
                                IArrowKeyController arrowKeyController,
                                IControlKeyController controlKeyController,
                                ICurrentMapStateProvider currentMapStateProvider)
 {
     _endlessGameProvider     = endlessGameProvider;
     _keyStateProvider        = keyStateProvider;
     _userInputTimeRepository = userInputTimeRepository;
     _arrowKeyController      = arrowKeyController;
     _controlKeyController    = controlKeyController;
     _currentMapStateProvider = currentMapStateProvider;
 }
コード例 #12
0
 public CharacterRendererFactory(IEndlessGameProvider gameProvider,
                                 IRenderTargetFactory renderTargetFactory,
                                 ICharacterProvider characterProvider,
                                 IRenderOffsetCalculator renderOffsetCalculator,
                                 ICharacterPropertyRendererBuilder characterPropertyRendererBuilder,
                                 ICharacterTextures characterTextures,
                                 ICharacterSpriteCalculator characterSpriteCalculator)
 {
     _gameProvider                     = gameProvider;
     _renderTargetFactory              = renderTargetFactory;
     _characterProvider                = characterProvider;
     _renderOffsetCalculator           = renderOffsetCalculator;
     _characterPropertyRendererBuilder = characterPropertyRendererBuilder;
     _characterTextures                = characterTextures;
     _characterSpriteCalculator        = characterSpriteCalculator;
 }
コード例 #13
0
 public UserInputHandler(IEndlessGameProvider endlessGameProvider,
                         IKeyStateProvider keyStateProvider,
                         IUserInputTimeRepository userInputTimeRepository,
                         IArrowKeyController arrowKeyController,
                         IControlKeyController controlKeyController,
                         ICurrentMapStateProvider currentMapStateProvider)
     : base((Game)endlessGameProvider.Game)
 {
     _handlers = new List <IInputHandler>
     {
         new ArrowKeyHandler(endlessGameProvider,
                             keyStateProvider,
                             userInputTimeRepository,
                             arrowKeyController,
                             currentMapStateProvider),
         new ControlKeyHandler(endlessGameProvider,
                               keyStateProvider,
                               userInputTimeRepository,
                               controlKeyController,
                               currentMapStateProvider)
     };
 }
コード例 #14
0
ファイル: NPCRenderer.cs プロジェクト: Uenoga/EndlessClient
        public NPCRenderer(IEndlessGameProvider endlessGameProvider,
                           ICharacterRendererProvider characterRendererProvider,
                           IENFFileProvider enfFileProvider,
                           INPCSpriteSheet npcSpriteSheet,
                           IRenderOffsetCalculator renderOffsetCalculator,
                           INPC initialNPC)
            : base((Game)endlessGameProvider.Game)
        {
            NPC = initialNPC;

            _characterRendererProvider = characterRendererProvider;
            _enfFileProvider           = enfFileProvider;
            _npcSpriteSheet            = npcSpriteSheet;
            _renderOffsetCalculator    = renderOffsetCalculator;

            _baseTextureFrameRectangle = GetStandingFrameRectangle();
            _readonlyTopPixel          = GetTopPixel();

            _hasStandingAnimation  = GetHasStandingAnimation();
            _lastStandingAnimation = DateTime.Now;
            _fadeAwayAlpha         = 255;
        }
コード例 #15
0
 public HudControlsFactory(IHudButtonController hudButtonController,
                           IHudPanelFactory hudPanelFactory,
                           IMapRendererFactory mapRendererFactory,
                           IUserInputHandlerFactory userInputHandlerFactory,
                           INativeGraphicsManager nativeGraphicsManager,
                           IGraphicsDeviceProvider graphicsDeviceProvider,
                           IClientWindowSizeProvider clientWindowSizeProvider,
                           IEndlessGameProvider endlessGameProvider,
                           ICharacterRepository characterRepository,
                           ICurrentMapStateRepository currentMapStateRepository,
                           IKeyStateRepository keyStateRepository,
                           IStatusLabelSetter statusLabelSetter,
                           IStatusLabelTextProvider statusLabelTextProvider,
                           IContentManagerProvider contentManagerProvider,
                           IHudControlProvider hudControlProvider,
                           IChatModeCalculator chatModeCalculator,
                           IExperienceTableProvider experienceTableProvider)
 {
     _hudButtonController       = hudButtonController;
     _hudPanelFactory           = hudPanelFactory;
     _mapRendererFactory        = mapRendererFactory;
     _userInputHandlerFactory   = userInputHandlerFactory;
     _nativeGraphicsManager     = nativeGraphicsManager;
     _graphicsDeviceProvider    = graphicsDeviceProvider;
     _clientWindowSizeProvider  = clientWindowSizeProvider;
     _endlessGameProvider       = endlessGameProvider;
     _characterRepository       = characterRepository;
     _currentMapStateRepository = currentMapStateRepository;
     _keyStateRepository        = keyStateRepository;
     _statusLabelSetter         = statusLabelSetter;
     _statusLabelTextProvider   = statusLabelTextProvider;
     _contentManagerProvider    = contentManagerProvider;
     _hudControlProvider        = hudControlProvider;
     _chatModeCalculator        = chatModeCalculator;
     _experienceTableProvider   = experienceTableProvider;
 }