/// <summary> /// Createas a new instance of the Hitzone view controller /// </summary> /// <param name="view">View interface it is linked to</param> /// <param name="calculator">Main Calculator class</param> public HitzoneViewController(IHitzoneView view, HitzoneFactory hitFab) { _view = view; _hitFab = hitFab; _view.SetController(this); this.LoadView(); }
public void CanRaiseEvent() { HitzoneFactory testHizonesFab = new HitzoneFactory(); WeaponsFactory testWeapFab = new WeaponsFactory(); CharacterSheet testSheet = new CharacterSheet(testHizonesFab.getZonesFor(testHizonesFab.AvailableRaces[0]), testWeapFab.getWeapon(testWeapFab.AvailableWeapons[0])); testSheet.charHandler += TestChar_changed; //Tbd }
public CARCalculator() { Log = CombatLog.getInstance; Time = CombatTime.getInstance; HitFab = new HitzoneFactory(); WeapFab = new WeaponsFactory(); DiceEngine = new DiceInterpreter(); PlayerCharacter = new CharacterSheet(HitFab.getZonesFor(HitFab.AvailableRaces[0]), WeapFab.getWeapon(WeapFab.AvailableWeapons[0])); EnemyCharacter = new CharacterSheet(HitFab.getZonesFor(HitFab.AvailableRaces[0]), WeapFab.getWeapon(WeapFab.AvailableWeapons[0])); Round = 0; }
public void InitHitzone() { Random rand = new Random(); HitFab = new HitzoneFactory(); }