Exemple #1
0
    public void changeResistance(int index, int resistanceChange) //Get resistance and replace it
    {
        Elemental_Attributes tempEA = base.getResistances();

        tempEA.setResistance(index, resistanceChange);
        base.setResistances(tempEA);
    }
Exemple #2
0
 protected Fighter(string n, int h, int mp)
 {
     resistances       = new Elemental_Attributes();
     FighterName       = n;
     maxHealth         = h;
     currentHealth     = h;
     maxManaPoints     = mp;
     currentManaPoints = mp;
 }
Exemple #3
0
    protected int Level = 1; //TODO Make own class for this

    protected Fighter()
    {
        resistances       = new Elemental_Attributes();
        FighterName       = "Gladiator";
        maxHealth         = 100;
        currentHealth     = 100;
        maxManaPoints     = 20;
        currentManaPoints = 20;
        statList          = new StatList();
    }
Exemple #4
0
    public Player() : base()
    {
        Elemental_Attributes baseResistance = new Elemental_Attributes("Normal", "Normal", "Normal", "Normal", "Normal", "Void", "Void");

        base.setResistances(baseResistance);
        maxAetherPoints     = 20;
        currentAetherPoints = 0;
        moneyAmount         = 20;

        addSkillToList(SkillList.HuntersSting());
        addSkillToList(SkillList.Infel());

        base.setName("Ashus");
    }
Exemple #5
0
 public void setResistances(Elemental_Attributes ea)
 {
     resistances = ea;
 }