Example #1
0
 public DefensiveBattleController()
 {
     Service.DefensiveBattleController = this;
     this.sdc               = Service.StaticDataController;
     this.timerManager      = Service.SimTimerManager;
     this.timers            = new List <uint>();
     this.cameraEvents      = new List <DefensiveBattleController.CameraEventData>();
     this.numTimesEntityHit = new Dictionary <uint, int>();
 }
 public DefensiveBattleController()
 {
     this.randomizeWaves = true;
     base..ctor();
     Service.Set <DefensiveBattleController>(this);
     this.sdc               = Service.Get <IDataController>();
     this.timerManager      = Service.Get <SimTimerManager>();
     this.timers            = new List <uint>();
     this.cameraEvents      = new List <DefensiveBattleController.CameraEventData>();
     this.numTimesEntityHit = new Dictionary <uint, int>();
 }
 public BattlePlaybackController()
 {
     Service.Set <BattlePlaybackController>(this);
     this.timerManager        = Service.Get <SimTimerManager>();
     this.eventManager        = Service.Get <EventManager>();
     this.battleController    = Service.Get <BattleController>();
     this.CurrentBattleRecord = null;
     this.CurrentBattleEntry  = null;
     this.SetDefaultPlaybackScale();
     this.actionCallbacks = new Dictionary <string, TimerDelegate>();
     this.actionCallbacks.Add("TroopPlaced", new TimerDelegate(this.TroopPlacedActionCallback));
     this.actionCallbacks.Add("HeroDeployed", new TimerDelegate(this.HeroDeployedActionCallback));
     this.actionCallbacks.Add("HeroAbilityActivated", new TimerDelegate(this.HeroAbilityActivateActionCallback));
     this.actionCallbacks.Add("ChampionDeployed", new TimerDelegate(this.ChampionDeployedActionCallback));
     this.actionCallbacks.Add("SpecialAttackDeployed", new TimerDelegate(this.SpecialAttackDeployedActionCallback));
     this.actionCallbacks.Add("SquadTroopPlaced", new TimerDelegate(this.SquadTroopPlacedActionCallback));
     this.actionCallbacks.Add("BattleCanceled", new TimerDelegate(this.BattleCanceledActionCallback));
     this.eventManager.RegisterObserver(this, EventId.BattleReplayRequested, EventPriority.Default);
 }
 public SquadTroopAttackController()
 {
     Service.Set <SquadTroopAttackController>(this);
     this.simTimerManager = Service.Get <SimTimerManager>();
     this.Reset();
 }
Example #5
0
 public SquadTroopAttackController()
 {
     Service.SquadTroopAttackController = this;
     this.simTimerManager = Service.SimTimerManager;
     this.Reset();
 }