コード例 #1
0
ファイル: Weapon.cs プロジェクト: jjaspe/Libraries
        /*******************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();
        }
コード例 #2
0
ファイル: Character.cs プロジェクト: jjaspe/Libraries
 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();
 }
コード例 #3
0
ファイル: Character.cs プロジェクト: jjaspe/Libraries
 public Character(string name)
 {
     Name = name;
     initializeLists();
     itsTargets = new characterList();
 }