Example #1
0
 public TowerBase(TowerSettings settings, GameLevelTime gameLevelTime, InputManager inputManager,
                  GameLevel gameLevel)
 {
     _shootLimiter = new GameLevelActionLimiter(gameLevelTime, settings.ShootFrequency);
     Settings      = settings;
     _inputManager = inputManager;
     _gameLevel    = gameLevel;
 }
Example #2
0
 public TowerBase GetTower(GameLevelTime time, GameLevel gameLevel, TowerSettings towerSettings)
 {
     return(_container
            .With("gameLevelTime").EqualTo(time)
            .With("gameLevel").EqualTo(gameLevel)
            .With("settings").EqualTo(towerSettings)
            .GetInstance <TowerBase>());
 }