Ejemplo n.º 1
0
        public Spells(DeathKnight newDeathKnightSpells)
        {
            this.deathKnightSpells = newDeathKnightSpells;

            if (deathKnightSpells.Equals(DeathKnight.DeathStrike))
            {
                this.spellName   = "Death strike";
                this.spellValue  = 120;
                this.spellClass  = new Classes(Classes.Class.DeathKnight);
                this.kindOfSpell = KindOfSpell.Damage;
                this.mana        = 30;
            }
            if (deathKnightSpells.Equals(DeathKnight.Lifesteal))
            {
                this.spellName   = "Life steal";
                this.spellValue  = 120;
                this.spellClass  = new Classes(Classes.Class.DeathKnight);
                this.kindOfSpell = KindOfSpell.LifeSteal;
                this.mana        = 50;
            }
            if (deathKnightSpells.Equals(DeathKnight.ArmyOfTheDead))
            {
                this.spellName   = "Army of the dead";
                this.spellValue  = 485;
                this.spellClass  = new Classes(Classes.Class.DeathKnight);
                this.kindOfSpell = KindOfSpell.LifeSteal;
                this.mana        = 80;
            }
        }
Ejemplo n.º 2
0
 private void OnCollisionEnter(Collision col)
 {
     if (col.gameObject.tag == "Sword" && Sinka_flg == true)
     {
         Transform wgbar = col.transform.Find("sword1Canvas/WGbar");
         evolution = wgbar.gameObject.GetComponent <Evolution>();
         evolution.Set_wgslider(20);
         evolution.Set_Wg(20);
         deathKnight = parent.gameObject.GetComponent <DeathKnight>();
         deathKnight.Die();
         Destoy(this);
     }
     if (col.gameObject.tag == "Sword" && Sinka_flg1 == true)
     {
         Transform Wgbar1 = col.transform.Find("sword2Canvas/Wgbar1");
         evolution1 = Wgbar1.gameObject.GetComponent <Evolution1>();
         evolution1.Set_wgslider1(20);
         evolution1.Set_Wg1(20);
         deathKnight = parent.gameObject.GetComponent <DeathKnight>();
         deathKnight.Die();
         Destoy(this);
     }
     if (col.gameObject.tag == "Sword" && Sinka_flg2 == true)
     {
         deathKnight = parent.gameObject.GetComponent <DeathKnight>();
         deathKnight.Die();
         Destoy(this);
     }
 }
Ejemplo n.º 3
0
 private void OnCollisionEnter(Collision collision)
 {
     if (collision.gameObject.tag == "Sword")
     {
         deathKnight     = parent.gameObject.GetComponent <DeathKnight>();
         deathKnight.flg = true;
     }
 }
Ejemplo n.º 4
0
        public override Hero CreateHero(string name, RaceType race)
        {
            var heroToCreate = new DeathKnight(
                name,
                race,
                HeroConstants.DEATH_KNIGHT_STAMINA,
                HeroConstants.DEATH_KNIGHT_STRENGHT,
                HeroConstants.DEATH_KNIGHT_INTELLIGENCE,
                HeroConstants.DEATH_KNIGHT_AGILITY,
                HeroConstants.DEATH_KNIGHT_ARMOR_RATING)
            {
                Abilities = DefinedHeroAbilities(),
                Skills    = DefinedHeroSkills(),
                Items     = Items()
            };

            return(heroToCreate);
        }
Ejemplo n.º 5
0
        internal static void DoRotation()
        {
            if (DetectKeyPress.GetKeyState(DetectKeyPress.Shift) < 0)
            {
                return;
            }
            if (DetectKeyPress.GetKeyState(DetectKeyPress.Z) < 0)
            {
                Rotation.ChangeRotation();
            }
            if (ObjectManager.LocalPlayer.IsMounted)
            {
                return;
            }



            switch (ObjectManager.LocalPlayer.Class)
            {
            case WowUnit.WowUnitClass.Paladin:
                //Paladin.DoPaladin();
                break;

            case WowUnit.WowUnitClass.Warrior:
                Warrior.DoWarrior();
                break;

            case WowUnit.WowUnitClass.Hunter:
                Hunter.DoHunter();
                break;

            case WowUnit.WowUnitClass.Druid:
                Druid.DoDruid();
                break;

            case WowUnit.WowUnitClass.Shaman:
                Shaman.DoShaman();
                break;

            case WowUnit.WowUnitClass.Rogue:
                Rogue.DoRogue();
                break;

            case WowUnit.WowUnitClass.Priest:
                Priest.DoPriest();
                break;

            case WowUnit.WowUnitClass.DeathKnight:
                DeathKnight.DoDeathKnight();
                break;

            case WowUnit.WowUnitClass.Mage:
                Mage.DoMage();
                break;

            case WowUnit.WowUnitClass.Warlock:
                Warlock.DoWarlock();
                break;

            case WowUnit.WowUnitClass.Monk:
                Monk.DoMonk();
                break;
            }
        }
Ejemplo n.º 6
0
    /// <summary>
    /// -40度から、0度の間に敵が生成される
    /// </summary>
    public void DropEnemy1()
    {
        Debug.Log(EnemyCount);
        int enemy = Random.Range(1, 4);             //生成される敵の種類

        Set_px();                                   //敵とプレイヤの最大距離を設定

        //EnemyCountに+1
        EnemyCount++;

        //生成される位置が-40度から0度の間の普通の敵
        if (enemy == 1)
        {
            GameObject go = Instantiate(Enemy1) as GameObject;

            int pz = Random.Range(-40, 1);                  //角度を設定する

            //度数法から弧度法に変換している
            float radian = pz * Mathf.PI / 180;

            float x2 = Mathf.Cos(radian) * px;              //最初のX座標
            float y2 = Mathf.Sin(radian) * px;              //最初のY座標(Z座標)

            float a2 = Mathf.Cos(radian) * Enemy1_distance; //最後のX座標
            float b2 = Mathf.Sin(radian) * Enemy1_distance; //最後のY座標(Z座標)

            //敵のスクリプトのInitialize関数に引数を渡す
            CactusScript cactus = go.GetComponent <CactusScript>();
            cactus.Initialize(x2, y2, a2, b2, pz);
        }

        //生成される位置が-40度から0度の間の普通の敵
        else if (enemy == 2)
        {
            GameObject go = Instantiate(Enemy2) as GameObject;

            int pz = Random.Range(-40, 1);                  //角度を設定する

            //度数法から弧度法に変換している
            float radian = pz * Mathf.PI / 180;

            float x2 = Mathf.Cos(radian) * px;              //最初のX座標
            float y2 = Mathf.Sin(radian) * px;              //最初のY座標(Z座標)

            float a2 = Mathf.Cos(radian) * Enemy2_distance; //最後のX座標
            float b2 = Mathf.Sin(radian) * Enemy2_distance; //最後のY座標(Z座標)

            //敵のスクリプトのInitialize関数に引数を渡す
            CactusScript cactus = go.GetComponent <CactusScript>();
            cactus.Initialize(x2, y2, a2, b2, pz);
        }

        //生成される位置が-40度から0度の間の弱点付きの敵
        else if (enemy == 3)
        {
            GameObject go = Instantiate(Enemy3) as GameObject;

            int pz = Random.Range(-40, 1);                  //角度を設定する

            //度数法から弧度法に変換している
            float radian = pz * Mathf.PI / 180;

            float x2 = Mathf.Cos(radian) * px;              //最初のX座標
            float y2 = Mathf.Sin(radian) * px;              //最初のY座標(Z座標)

            float a2 = Mathf.Cos(radian) * Enemy3_distance; //最後のX座標
            float b2 = Mathf.Sin(radian) * Enemy3_distance; //最後のY座標(Z座標)

            //敵のスクリプトのInitialize関数に引数を渡す
            DeathKnight deathKnight = go.GetComponent <DeathKnight>();
            deathKnight.Initialize(x2, y2, a2, b2, pz);
        }
    }