public void chooseHero(HeroKind heroKind) { if (game != null) { Hero hero = new Hero(game, heroKind, null); bool status = game.chooseHero(this, hero); if (status) { this.hero = hero; } } }
} //For increased battle value from herb public Hero(Game game, HeroKind heroKind, HeroController controller) : base() { this.game = game; this.heroKind = heroKind; this.controller = controller; heroRank = startingHeroRank(heroKind); gold = -1; maxStrength = 14; maxWillpower = 20; strengthPoints = -1; willpowerPoints = -1; //TODO: For testing - don't forget to remove later I commented it out for you cause i need to test online /* * strengthPoints = 1; * willpowerPoints = 7; * UpdateDice(); * lightItems = new Item[3]; * addItem(new Wineskin(ItemWeight.Light)); * addItem(new Runestone(ItemWeight.Light, GemColor.Blue)); */ }
private int startingRegionRank(HeroKind heroKind) { if (game.getLegend() == Legend.Legend2) { if (heroKind == HeroKind.Archer) { return(25); } else if (heroKind == HeroKind.Dwarf) { return(7); } else if (heroKind == HeroKind.Warrior) { return(14); } else if (heroKind == HeroKind.Wizard) { return(34); } } return(-1); }