/*******************CONSTRUCTORS*********************/ public Weapon() { itsName = " "; itsUsers = new characterList(); itsTargets = new characterList(); itsActions = new List<WeaponAction>(); itsChoosableActions = new WeaponAction[Globals.ACTION_LIMIT]; itsSubActions = new int[Globals.ACTION_LIMIT, Globals.ACTION_LIMIT]; itsModifiedSkills = new propertyList(); itsSkillModifiers = new Coefficient[Globals.SKILL_LIMIT]; initializeLists(); }
private void initializeLists() { itsStats = new propertyList(); itsSkills = new propertyList(); itsAttributes = new propertyList(); itsTargets = new characterList(); itsWeapons = new Weapon[Globals.WEAPON_LIMIT]; for (int i = 0; i < Globals.WEAPON_LIMIT; i++) itsWeapons[i] = new Weapon(); }
public Character(string name) { Name = name; initializeLists(); itsTargets = new characterList(); }