Exemplo n.º 1
0
 public PickUpAction(GameEntity entity, float energyCost, GameEntity itemToPickUp, IActionEffectFactory actionEffectFactory, IEntityDetector entityDetector, IUiFacade uiFacade)
     : base(entity, energyCost, actionEffectFactory)
 {
     _entityDetector = entityDetector;
     ItemToPickUp    = itemToPickUp;
     _uiFacade       = uiFacade;
 }
Exemplo n.º 2
0
 public ReceiveDamageSystem(IContext <GameEntity> context, IDeathHandler deathHandler, IUiFacade uiFacade,
                            IAggressionTriggerer aggressionTriggerer, IPositionEffectPresenter positionEffectPresenter) : base(context)
 {
     _deathHandler            = deathHandler;
     _uiFacade                = uiFacade;
     _aggressionTriggerer     = aggressionTriggerer;
     _positionEffectPresenter = positionEffectPresenter;
 }
Exemplo n.º 3
0
 public ResolveAbilitiesPerTurnSystem(GameContext context, IEntityDetector entityDetector, IUiFacade uiFacade, IGameConfig gameConfig)
     : base(context)
 {
     _context        = context;
     _entityDetector = entityDetector;
     _uiFacade       = uiFacade;
     _gameConfig     = gameConfig;
 }
Exemplo n.º 4
0
        public DeathHandler(IUiFacade uiFacade, IViewCreator viewCreator, IGameConfig gameConfig, IPositionEffectPresenter positionEffectPresenter, IOsnowaContextManager contextManager)
        {
            _uiFacade    = uiFacade;
            _viewCreator = viewCreator;
            _gameConfig  = gameConfig;

            _positionEffectPresenter = positionEffectPresenter;
            _contextManager          = contextManager;
        }
Exemplo n.º 5
0
 public DropAction(GameEntity entity, float energyCost, GameEntity itemToDrop, IActionEffectFactory actionEffectFactory, IFirstPlaceInAreaFinder firstPlaceInAreaFinder, IEntityDetector entityDetector, IGameConfig gameConfig, IUiFacade uiFacade, IPositionEffectPresenter positionEffectPresenter)
     : base(entity, energyCost, actionEffectFactory)
 {
     _itemToDrop             = itemToDrop;
     _firstPlaceInAreaFinder = firstPlaceInAreaFinder;
     _entityDetector         = entityDetector;
     _gameConfig             = gameConfig;
     _uiFacade = uiFacade;
     _positionEffectPresenter = positionEffectPresenter;
 }
Exemplo n.º 6
0
 public void Init(IRandomNumberGenerator rng, TilemapGenerator tilemapGenerator, IWorldActorFiller worldActorFiller,
                  IPositionFlagsResolver positionFlagsResolver, IExampleContextManager contextManager, IUiFacade uiFacade)
 {
     _rng = rng;
     _tilemapGenerator      = tilemapGenerator;
     _worldActorFiller      = worldActorFiller;
     _positionFlagsResolver = positionFlagsResolver;
     _contextManager        = contextManager;
     _uiFacade = uiFacade;
 }
Exemplo n.º 7
0
 public Navigator(IPathfinder pathfinder, IGrid grid, INaturalLineCalculator naturalLineCreator,
                  IRasterLineCreator rasterLineCreator, IUiFacade uiFacade)
 {
     _pathfinder         = pathfinder;
     _grid               = grid;
     _naturalLineCreator = naturalLineCreator;
     _rasterLineCreator  = rasterLineCreator;
     _uiFacade           = uiFacade;
     _debugPathPresenter = new DebugPathPresenter();
 }
Exemplo n.º 8
0
 public void Init(GameContext context, IUiFacade uiFacade, IUnityGridInfoProvider unityGridInfoProvider, ITileMatrixUpdater tileMatrixUpdater,
                  IRasterLineCreator rasterLineCreator, IGameConfig gameConfig, IInputWithRepeating inputWithRepeating)
 {
     _context  = context;
     _uiFacade = uiFacade;
     _unityGridInfoProvider = unityGridInfoProvider;
     _tileMatrixUpdater     = tileMatrixUpdater;
     _rasterLineCreator     = rasterLineCreator;
     _gameConfig            = gameConfig;
     _inputWithRepeating    = inputWithRepeating;
 }
Exemplo n.º 9
0
 public void Init(IUnityGridInfoProvider unityGridInfoProvider, IUiFacade uiFacade, IOsnowaContextManager contextManager,
                  ITileByIdProvider tileByIdProvider, IGameConfig gameConfig, IEntityDetector entityDetector, GameContext context)
 {
     _tileByIdProvider      = tileByIdProvider;
     _contextManager        = contextManager;
     _uiFacade              = uiFacade;
     _unityGridInfoProvider = unityGridInfoProvider;
     _gameConfig            = gameConfig;
     _entityDetector        = entityDetector;
     _context = context;
 }
Exemplo n.º 10
0
 public void Init(IInputWithRepeating inputWithRepeating, IEnvironmentPresenter environmentPresenter,
                  GameContext context, IGameConfig gameConfig, IUiFacade uiFacade, ISceneContext sceneContext,
                  [Inject(Id = "_playerActionResolver")] IActionResolver playerActionResolver,
                  ResolveAbilitiesPerTurnSystem resolveAbilitiesPerTurnSystem,
                  PlayerInventoryChangedSystem playerInventoryChangedSystem, IOsnowaContextManager contextManager)
 {
     _keysToAbilities      = InitializeKeysToAbilities(gameConfig.Abilities.AllAbilities);
     _inputWithRepeating   = inputWithRepeating;
     _environmentPresenter = environmentPresenter;
     _context                       = context;
     _uiFacade                      = uiFacade;
     _sceneContext                  = sceneContext;
     _gameConfig                    = gameConfig;
     _playerActionResolver          = playerActionResolver;
     _resolveAbilitiesPerTurnSystem = resolveAbilitiesPerTurnSystem;
     _playerInventoryChangedSystem  = playerInventoryChangedSystem;
     _contextManager                = contextManager;
 }
Exemplo n.º 11
0
 public PostHeartbeatSystem(IEntityDetector entityDetector, IGameConfig gameConfig,
                            ICalculatedAreaAccessor calculatedAreaAccessor, IStimulusReceiver stimulusReceiver, IPathfinder pathfinder,
                            IBroadcastStimulusSender broadcastStimulusSender, IPositionEffectPresenter positionEffectPresenter,
                            GameContext context, IFriendshipResolver friendshipResolver,
                            IUiFacade uiFacade, IOsnowaContextManager contextManager)
     : base(context)
 {
     _entityDetector          = entityDetector;
     _gameConfig              = gameConfig;
     _calculatedAreaAccessor  = calculatedAreaAccessor;
     _stimulusReceiver        = stimulusReceiver;
     _pathfinder              = pathfinder;
     _broadcastStimulusSender = broadcastStimulusSender;
     _positionEffectPresenter = positionEffectPresenter;
     _friendshipResolver      = friendshipResolver;
     _uiFacade       = uiFacade;
     _contextManager = contextManager;
     _context        = context;
 }
Exemplo n.º 12
0
 public ActivityCreationContext(INavigator navigator, IRandomNumberGenerator rng, IActionFactory actionFactory, ISceneContext sceneContext,
                                IExampleContextManager contextManager, IGameConfig gameConfig, IEntityDetector entityDetector, ICalculatedAreaAccessor calculatedAreaAccessor,
                                IUiFacade uiFacade, IRasterLineCreator rasterLineCreator, IPositionEffectPresenter positionEffectPresenter,
                                IFriendshipResolver friendshipResolver, GameContext context)
 {
     Navigator               = navigator;
     Rng                     = rng;
     ActionFactory           = actionFactory;
     SceneContext            = sceneContext;
     ContextManager          = contextManager;
     GameConfig              = gameConfig;
     EntityDetector          = entityDetector;
     CalculatedAreaAccessor  = calculatedAreaAccessor;
     UiFacade                = uiFacade;
     RasterLineCreator       = rasterLineCreator;
     PositionEffectPresenter = positionEffectPresenter;
     FriendshipResolver      = friendshipResolver;
     Context                 = context;
 }
Exemplo n.º 13
0
        public WorldClock(ISceneContext sceneContext, IGameConfig gameConfig,
                          IUiFacade uiFacadeUiFacade, IEntityDetector entityDetector, ITileMatrixUpdater tileMatrixUpdater,
                          IRandomNumberGenerator rng, IViewCreator viewCreator,
                          IOsnowaContextManager contextManager)
        {
            _sceneContext = sceneContext;

            _gameConfig        = gameConfig;
            _uiFacade          = uiFacadeUiFacade;
            _entityDetector    = entityDetector;
            _tileMatrixUpdater = tileMatrixUpdater;
            _rng            = rng;
            _viewCreator    = viewCreator;
            _contextManager = contextManager;
            _gameContext    = Contexts.sharedInstance.game;

            double minutesInDay = new TimeSpan(1, 0, 0, 0).TotalMinutes;

            _minutesInTurn = minutesInDay / _gameConfig.TurnsInDay;
        }
Exemplo n.º 14
0
 public ActionFactory(IGrid grid, IActionEffectFactory actionEffectFactory, IUnityGridInfoProvider unityGridInfoProvider, IPositionEffectPresenter positionEffectPresenter, IRandomNumberGenerator randomNumberGenerator, IDeathHandler deathHandler, ISceneContext sceneContext, IGameConfig gameConfig, IViewCreator viewCreator, ITileMatrixUpdater tileMatrixUpdater, IFirstPlaceInAreaFinder firstPlaceInAreaFinder, IBroadcastStimulusSender stimulusBroadcaster, IEntityDetector entityDetector, LoadViewSystem loadViewSystem, IUiFacade uiFacade, IOsnowaContextManager contextManager, IEntityViewBehaviourInitializer entityViewBehaviourInitializer, IAggressionTriggerer aggressionTriggerer, IEntityGenerator entityGenerator, ReactiveFeature reactiveFeature)
 {
     _grid = grid;
     _unityGridInfoProvider   = unityGridInfoProvider;
     _positionEffectPresenter = positionEffectPresenter;
     _randomNumberGenerator   = randomNumberGenerator;
     _deathHandler            = deathHandler;
     _actionEffectFactory     = actionEffectFactory;
     _sceneContext            = sceneContext;
     _gameConfig             = gameConfig;
     _viewCreator            = viewCreator;
     _tileMatrixUpdater      = tileMatrixUpdater;
     _firstPlaceInAreaFinder = firstPlaceInAreaFinder;
     _stimulusBroadcaster    = stimulusBroadcaster;
     _entityDetector         = entityDetector;
     _loadViewSystem         = loadViewSystem;
     _uiFacade       = uiFacade;
     _contextManager = contextManager;
     _entityViewBehaviourInitializer = entityViewBehaviourInitializer;
     _aggressionTriggerer            = aggressionTriggerer;
     _entityGenerator = entityGenerator;
     _reactiveFeature = reactiveFeature;
 }
Exemplo n.º 15
0
 public PresentPlayerSatiationSystem(GameContext context, IUiFacade uiFacade) : base(context)
 {
     _context  = context;
     _uiFacade = uiFacade;
 }
Exemplo n.º 16
0
 public AggressionTriggerer(IUiFacade uiFacade, IPositionEffectPresenter positionEffectPresenter)
 {
     _uiFacade = uiFacade;
     _positionEffectPresenter = positionEffectPresenter;
 }
Exemplo n.º 17
0
 public EntityPresenter(IOsnowaContextManager contextManager, IUiFacade uiFacade, IPositionedEntityDetector entityDetector)
 {
     _contextManager = contextManager;
     _uiFacade       = uiFacade;
     _entityDetector = entityDetector;
 }
Exemplo n.º 18
0
 public IntegrityChangedSystem(IContext <GameEntity> context, IDeathHandler deathHandler, IUiFacade uiFacade) : base(context)
 {
     _deathHandler = deathHandler;
     _uiFacade     = uiFacade;
 }
Exemplo n.º 19
0
 public void Init(IUiFacade uiFacade, IOsnowaContextManager contextManager)
 {
     _uiFacade       = uiFacade;
     _contextManager = contextManager;
 }
Exemplo n.º 20
0
 public void Init(IUiFacade uiFacade)
 {
     _uiFacade = uiFacade;
 }
Exemplo n.º 21
0
 public PlayerInventoryChangedSystem(IContext <GameEntity> context, IUiFacade uiFacade) : base(context)
 {
     _uiFacade = uiFacade;
 }
Exemplo n.º 22
0
 public void Init(GameContext context, IUiFacade uiFacade, IUnityGridInfoProvider unityGridInfoProvider)
 {
     _context  = context;
     _uiFacade = uiFacade;
     _unityGridInfoProvider = unityGridInfoProvider;
 }