示例#1
0
文件: Character.cs 项目: dmacy5/RPG
        //armor (clothes)
        //weapon, shield
        //items (belt, necklace, rings)

        public Character(string thisName)
        {
            name         = thisName;
            gender       = "male";
            health       = 100;
            healthMax    = 100;
            stamina      = 75;
            staminaMax   = 100;
            strength     = 10;
            dexterity    = 10;
            constitution = 10;
            endurance    = 10;
            charisma     = 10;
            intelligence = 10;

            abilities = new SpecialAbilityList(new Slash());
            inventory = new Inventory();
            inventory.addItem(new HealthPotion());
        }
示例#2
0
文件: Character.cs 项目: dmacy5/RPG
        //armor (clothes)
        //weapon, shield
        //items (belt, necklace, rings)
        public Character(string thisName)
        {
            name = thisName;
            gender = "male";
            health = 100;
            healthMax = 100;
            stamina = 75;
            staminaMax = 100;
            strength = 10;
            dexterity = 10;
            constitution = 10;
            endurance = 10;
            charisma = 10;
            intelligence = 10;

            abilities = new SpecialAbilityList(new Slash());
            inventory = new Inventory();
            inventory.addItem(new HealthPotion());
        }