예제 #1
0
 public StrongholdEngageMainAttackPassiveAction(uint cityId,
                                                uint troopObjectId,
                                                uint targetStrongholdId,
                                                IGameObjectLocator gameObjectLocator,
                                                StrongholdBattleProcedure strongholdBattleProcedure)
     : this(gameObjectLocator, strongholdBattleProcedure)
 {
     this.cityId             = cityId;
     this.troopObjectId      = troopObjectId;
     this.targetStrongholdId = targetStrongholdId;
 }
예제 #2
0
 public StrongholdEngageGateAttackPassiveAction(IBattleFormulas battleFormula,
                                                IGameObjectLocator gameObjectLocator,
                                                StrongholdBattleProcedure strongholdBattleProcedure,
                                                IDbManager dbManager,
                                                IStaminaMonitorFactory staminaMonitorFactory)
 {
     this.battleFormula             = battleFormula;
     this.gameObjectLocator         = gameObjectLocator;
     this.strongholdBattleProcedure = strongholdBattleProcedure;
     this.dbManager             = dbManager;
     this.staminaMonitorFactory = staminaMonitorFactory;
 }
예제 #3
0
 public StrongholdGateBattlePassiveAction(StrongholdBattleProcedure strongholdBattleProcedure,
                                          ILocker locker,
                                          IGameObjectLocator gameObjectLocator,
                                          IDbManager dbManager,
                                          Formula formula,
                                          IWorld world)
 {
     this.strongholdBattleProcedure = strongholdBattleProcedure;
     this.locker            = locker;
     this.gameObjectLocator = gameObjectLocator;
     this.dbManager         = dbManager;
     this.formula           = formula;
     this.world             = world;
 }
예제 #4
0
 public StrongholdEngageGateAttackPassiveAction(uint cityId,
                                                uint troopObjectId,
                                                uint targetStrongholdId,
                                                IBattleFormulas battleFormula,
                                                IGameObjectLocator gameObjectLocator,
                                                StrongholdBattleProcedure strongholdBattleProcedure,
                                                IDbManager dbManager,
                                                IStaminaMonitorFactory staminaMonitorFactory)
     : this(battleFormula, gameObjectLocator, strongholdBattleProcedure, dbManager, staminaMonitorFactory)
 {
     this.cityId             = cityId;
     this.troopObjectId      = troopObjectId;
     this.targetStrongholdId = targetStrongholdId;
 }
예제 #5
0
 public StrongholdDefenseChainAction(IActionFactory actionFactory,
                                     Procedure procedure,
                                     ILocker locker,
                                     IGameObjectLocator gameObjectLocator,
                                     BattleProcedure battleProcedure,
                                     StrongholdBattleProcedure strongholdBattleProcedure)
 {
     this.actionFactory             = actionFactory;
     this.procedure                 = procedure;
     this.locker                    = locker;
     this.gameObjectLocator         = gameObjectLocator;
     this.battleProcedure           = battleProcedure;
     this.strongholdBattleProcedure = strongholdBattleProcedure;
 }
예제 #6
0
 public StrongholdDefenseChainAction(uint cityId,
                                     ITroopObjectInitializer troopObjectInitializer,
                                     uint targetStrongholdId,
                                     IActionFactory actionFactory,
                                     Procedure procedure,
                                     ILocker locker,
                                     IGameObjectLocator gameObjectLocator,
                                     BattleProcedure battleProcedure,
                                     StrongholdBattleProcedure strongholdBattleProcedure)
     : this(actionFactory, procedure, locker, gameObjectLocator, battleProcedure, strongholdBattleProcedure)
 {
     this.cityId                 = cityId;
     this.targetStrongholdId     = targetStrongholdId;
     this.troopObjectInitializer = troopObjectInitializer;
 }
예제 #7
0
        public StrongholdGateBattlePassiveAction(uint strongholdId,
                                                 StrongholdBattleProcedure strongholdBattleProcedure,
                                                 ILocker locker,
                                                 IGameObjectLocator gameObjectLocator,
                                                 IDbManager dbManager,
                                                 Formula formula,
                                                 IWorld world)
            : this(strongholdBattleProcedure, locker, gameObjectLocator, dbManager, formula, world)
        {
            this.strongholdId = strongholdId;

            IStronghold stronghold;

            if (!gameObjectLocator.TryGetObjects(strongholdId, out stronghold))
            {
                throw new Exception("Did not find stronghold that was supposed to be having a battle");
            }

            stronghold.GateBattle.GroupKilled    += BattleOnGroupKilled;
            stronghold.GateBattle.ActionAttacked += BattleOnActionAttacked;
        }
예제 #8
0
 public StrongholdMainBattlePassiveAction(BattleProcedure battleProcedure,
                                          StrongholdBattleProcedure strongholdBattleProcedure,
                                          ILocker locker,
                                          IGameObjectLocator gameObjectLocator,
                                          IDbManager dbManager,
                                          Formula formula,
                                          IWorld world,
                                          IStrongholdManager strongholdManager,
                                          IActionFactory actionFactory,
                                          ITroopObjectInitializerFactory troopInitializerFactory)
 {
     this.battleProcedure           = battleProcedure;
     this.strongholdBattleProcedure = strongholdBattleProcedure;
     this.locker                  = locker;
     this.gameObjectLocator       = gameObjectLocator;
     this.dbManager               = dbManager;
     this.formula                 = formula;
     this.world                   = world;
     this.strongholdManager       = strongholdManager;
     this.actionFactory           = actionFactory;
     this.troopInitializerFactory = troopInitializerFactory;
 }
예제 #9
0
        public StrongholdMainBattlePassiveAction(uint strongholdId,
                                                 BattleProcedure battleProcedure,
                                                 StrongholdBattleProcedure strongholdBattleProcedure,
                                                 ILocker locker,
                                                 IGameObjectLocator gameObjectLocator,
                                                 IDbManager dbManager,
                                                 Formula formula,
                                                 IWorld world,
                                                 IStrongholdManager strongholdManager,
                                                 IActionFactory actionFactory,
                                                 ITroopObjectInitializerFactory troopInitializerFactory)
            : this(battleProcedure, strongholdBattleProcedure, locker, gameObjectLocator, dbManager, formula, world, strongholdManager, actionFactory, troopInitializerFactory)
        {
            this.strongholdId = strongholdId;

            IStronghold stronghold;

            if (!gameObjectLocator.TryGetObjects(strongholdId, out stronghold))
            {
                throw new Exception("Did not find stronghold that was supposed to be having a battle");
            }

            RegisterBattleListeners(stronghold);
        }
예제 #10
0
 public StrongholdEngageMainAttackPassiveAction(IGameObjectLocator gameObjectLocator,
                                                StrongholdBattleProcedure strongholdBattleProcedure)
 {
     this.gameObjectLocator         = gameObjectLocator;
     this.strongholdBattleProcedure = strongholdBattleProcedure;
 }