/// <summary> /// This is the constructor for the battle builder. /// </summary> /// <param name="enemy">The enemy collided with</param> public BattleBuilder(PartyUtils.Enemy enemy) { this.enemy = enemy; // Load the battle configurations for the first time if (battleConfigs == null) { battleConfigs = FileUtils.LoadBattleConfigurations(); } r = ArenaController.instance.getGenerator(); generateBattle(); }
/// <summary> /// This is the default constructor for the arena enemy. /// </summary> /// <param name="createTile">The tile to start on</param> /// <param name="Content">The content manager for loading</param> public ArenaEnemy(Tile createTile, ContentManager Content, PartyUtils.Enemy type) { // Add this to the collidables list ArenaScene.instance.collidables.Add(this); _currentTile = createTile; _Position = new Vector3(_currentTile.getModelPos().X, 0, _currentTile.getModelPos().Z); //should start in the middle of the start tile (X, Y, Z); scale = 0.5f; // Set the wait turns randomly waitTurns = ArenaController.instance.getGenerator().Next(1, WAIT_TURNS + 1); this.type = type; myModel = Content.Load<Model>("Models/hero"); setTexture(Content); }