Ejemplo n.º 1
0
 public Mage(string name, MageClass mageClass, bool virtualPlayer)
 {
     Name               = name;
     MageClass          = mageClass;
     _ActualMana        = mageClass.StartingMana;
     _ActualHealth      = mageClass.StartingLife;
     this.virtualplayer = virtualPlayer;
 }
Ejemplo n.º 2
0
    public void Initialize(int Direction, GameObject parent, GameObject pullLocations)
    {
        _parent = parent;
        _parentScript = _parent.GetComponent<MageClass>();
        _firingDirection = Direction;
        _pullLocations = pullLocations;

        if (_firingDirection == 1)
        {
            transform.localEulerAngles += new Vector3(0f, 180f, 0f);
        }
    }
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        selectable[0] = warriorSelection;
        selectable[1] = thiefSelection;
        selectable[2] = mageSelection;
        selectable[3] = druidSelection;

        selectable[4] = strengthStat;
        selectable[5] = constitutionStat;
        selectable[6] = dexterityStat;
        selectable[7] = intellectStat;
        selectable[8] = wisdomStat;
        selectable[9] = charismaStat;

        selectable[10] = nextScene;

        selectable[0].text = "Warrior";
        selectable[1].text = "Thief";
        selectable[2].text = "Mage";
        selectable[3].text = "Druid";

        selectable[4].text = "-";
        selectable[5].text = "-";
        selectable[6].text = "-";
        selectable[7].text = "-";
        selectable[8].text = "-";
        selectable[9].text = "-";

        selectable[10].text = "Start your adventure";

        infoText[0] = "Strength - Determines physical damage and carrying weight";                  //"ME SMASH With me Big HEAVY BoUlder!!11";
        infoText[1] = "Constitution - Determines your health";                                      //"Life is short, make it worthwhile.";
        infoText[2] = "Dexterity - Determines your crit chance, evade chance";                      //"Slime yourself up!";
        infoText[3] = "Intellect - Determines your magic damage, ability to save up action points"; // "Knowledge is power, and I know some things.";
        infoText[4] = "Wisdom - Determines the amount of actions point you get";                    // "Experinced with experiences.";
        infoText[5] = "Charisma - Gives you better prices at shops, better items";                  //"One mans trash is another ones treasure.";

        warriorStatStorage = classStorage.GetComponent <WarriorClass>();
        thiefStatStorage   = classStorage.GetComponent <ThiefClass>();
        druidStatStorage   = classStorage.GetComponent <DruidClass>();
        mageStatStorage    = classStorage.GetComponent <MageClass>();

        statName[0] = "Strength";
        statName[1] = "Constitution";
        statName[2] = "Dexterity";
        statName[3] = "Intellect";
        statName[4] = "Wisdom";
        statName[5] = "Charisma";
    }
Ejemplo n.º 4
0
    public void Initialize(int Direction, GameObject parent, float size, int Damage, GameObject target)
    {
        _parent = parent;
        _parentScript = _parent.GetComponent<MageClass>();
        _target = target;

        transform.localScale *= size;

        _damage = Damage;

        if (_firingDirection == 1)
        {
            _sprite.transform.localEulerAngles += new Vector3(0f, 180f, 0f);
        }
    }
Ejemplo n.º 5
0
    public void Initialize(Color color, string colorName, int Direction, GameObject parent, float size, int Damage)
    {
        _colorName = colorName;
        _parent = parent;
        _parentScript = _parent.GetComponent<MageClass>();
        _color = color;
        _firingDirection = Direction;

        if (_firingDirection == 1)
        {
            _sprite.transform.localEulerAngles += new Vector3(0f, 180f, 0f);
        }
        size = size / 1.5f;

        transform.localScale *= size;

        _sprite.GetComponent<SpriteRenderer>().enabled = true;

        _damage = Damage;
    }
Ejemplo n.º 6
0
 public void Initialize(Color color, string colorName, GameObject parent)
 {
     _parent = parent;
     _parentScript = _parent.GetComponent<MageClass>();
        _particle1.GetComponent<ParticleSystem>().startColor = color;
 }