Пример #1
0
        //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
 public PlayerBase(PlayerType type, int HP_MAX, int MP_MAX,
     int INIT_ATK, int INIT_MAG_ATK, int INIT_DEF, int INIT_AGL, int INIT_HP_REGEN, int INIT_MP_REGEN,
     Item[] inventory, Item armor, Item weapon, ItemType[] equipableArmor, ItemType[] equipableWeapon,
     int HP_GROWTH, int MP_GROWTH, int ATK_GROWTH, int MAG_ATK_GROWTH, int DEF_GROWTH, int AGL_GROWTH,
     int[] expGrowth, Spell[] spellList, Sprite battleSprite)
 {
     #region INITIALIZATIONS
     this.playerType = type;
     this.baseHP = HP_MAX;
     this.baseMP= MP_MAX;
     this.baseATK = INIT_ATK;
     this.baseDEF = INIT_DEF;
     this.baseAGL = INIT_AGL;
     this.baseMAGATK = INIT_MAG_ATK;
     this.baseHPRegen = INIT_HP_REGEN;
     this.baseMPRegen = INIT_MP_REGEN;
     this.inventory = new Inventory(inventory);
     this.armor = armor;
     this.weapon = weapon;
     this.weaponSet = equipableWeapon;
     this.armorSet = equipableArmor;
     this.hpGrowth = HP_GROWTH;
     this.mpGrowth = MP_GROWTH;
     this.atkGrowth = ATK_GROWTH;
     this.magAtkGrowth = MAG_ATK_GROWTH;
     this.defGrowth = DEF_GROWTH;
     this.aglGrowth = AGL_GROWTH;
     this.expGrowth = expGrowth;
     this.spellList = spellList;
     #endregion
 }
Пример #3
0
 public Player(PlayerBase pb, Sprite cs, String name = "Player", int level = 1, int currentExp = 0)
 {
     #region INITIALIZATIONS
     this.name = name;
     this.playerBase = pb;
     this.level = level;
     this.armor = pb.armor;
     this.weapon = pb.weapon;
     this.inventory = pb.inventory;
     this.hpLoss = 0;
     this.mpLoss = 0;
     this.isDead = false;
     this.currentExp = currentExp;
     this.currMaxMP = this.GetMAXMP();
     this.currMaxHP = this.GetMAXHP();
     this.currATK = this.GetCurrentAGL();
     this.currDEF = this.GetCurrentDEF();
     this.currAGL = this.GetCurrentAGL();
     this.currMAGATK = this.GetCurrentMAGATK();
     this.currHPREGEN = this.GetCurrentHealthRegen();
     this.currMPREGEN = this.GetCurrentManaRegen();
     this.sprite = cs;
     #endregion
 }