public Unit(resourceManager resourceManager, string newName, string newRace, string newClass, int newClassVariantIndex) { name = newName; race = resourceManager.getRace(newRace); unitClass = resourceManager.getClass(newClass); streght = new Ability(unitClass.getAbility(0).getScore()); constitution = new Ability((unitClass.getAbility(1).getScore())); dexterity = new Ability((unitClass.getAbility(2).getScore())); mind = new Ability((unitClass.getAbility(3).getScore())); charisma = new Ability((unitClass.getAbility(4).getScore())); setMaxHeath(); setHealth("SET", healthPoints[1]); classVariantIndex = newClassVariantIndex; }