Beispiel #1
0
 public Player(int id, string name, int health, int lives, int experiencePoints, PlayerClassName playerClass)
     : base(id, name, health)
 {
     Lives            = lives;
     ExperiencePoints = experiencePoints;
     PlayerClass      = playerClass;
 }
Beispiel #2
0
    public override void CopyValues(ScrObjLibraryEntry other)
    {
        base.CopyValues(other);
        ClassEntry cc = (ClassEntry)other;

        className = cc.className;

        icon         = cc.icon;
        playerSprite = cc.playerSprite;
        allySprite   = cc.allySprite;
        enemySprite  = cc.enemySprite;
        bossSprite   = cc.bossSprite;

        classType = cc.classType;
        movespeed = cc.movespeed;

        hp  = cc.hp;
        dmg = cc.dmg;
        mnd = cc.mnd;
        skl = cc.skl;
        spd = cc.spd;
        def = cc.def;

        gHp  = cc.gHp;
        gDmg = cc.gDmg;
        gMnd = cc.gMnd;
        gSkl = cc.gSkl;
        gSpd = cc.gSpd;
        gDef = cc.gDef;

        lockTouch    = cc.lockTouch;
        weaponSkills = new List <WeaponType>();
        for (int i = 0; i < cc.weaponSkills.Count; i++)
        {
            weaponSkills.Add(cc.weaponSkills[i]);
        }
        skills = new List <CharacterSkill>();
        for (int i = 0; i < cc.skills.Count; i++)
        {
            skills.Add(cc.skills[i]);
        }
        bonusHp  = cc.bonusHp;
        bonusDmg = cc.bonusDmg;
        bonusMnd = cc.bonusMnd;
        bonusSkl = cc.bonusSkl;
        bonusSpd = cc.bonusSpd;
        bonusDef = cc.bonusDef;
    }
Beispiel #3
0
    public override void ResetValues()
    {
        base.ResetValues();
        className = PlayerClassName.NONE;

        icon         = null;
        playerSprite = null;
        allySprite   = null;
        enemySprite  = null;
        bossSprite   = null;

        classType = MovementType.NONE;
        movespeed = 5;

        hp  = 1;
        dmg = 0;
        mnd = 0;
        skl = 0;
        spd = 0;
        def = 0;

        gHp  = 0;
        gDmg = 0;
        gMnd = 0;
        gSkl = 0;
        gSpd = 0;
        gDef = 0;

        lockTouch    = false;
        weaponSkills = new List <WeaponType>();
        skills       = new List <CharacterSkill>();

        bonusHp  = 0;
        bonusDmg = 0;
        bonusMnd = 0;
        bonusSkl = 0;
        bonusSpd = 0;
        bonusDef = 0;
    }
Beispiel #4
0
 public ClassEntry GetClass(PlayerClassName className)
 {
     return(classes[(int)className]);
 }