コード例 #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("Player"))
     {
         GoliathAttackSwitch.NextSwitch();
         Goliath.Atacked();
     }
 }
コード例 #2
0
        public HeroesController()
        {
            context = new ApplicationDbContext();

            Hulk          hulk          = new Hulk();
            Batman        batman        = new Batman();
            Goliath       goliath       = new Goliath();
            OptimusPrime  optimusPrime  = new OptimusPrime();
            List <Heroes> initialHeroes = new List <Heroes>();

            initialHeroes.Add(hulk);
            initialHeroes.Add(batman);
            initialHeroes.Add(goliath);
            initialHeroes.Add(optimusPrime);
            CheckInitialHeroes(initialHeroes);
        }
コード例 #3
0
        public bool CheckIfHeroIsDefault(int id)
        {
            Hulk         hulk         = new Hulk();
            Batman       batman       = new Batman();
            Goliath      goliath      = new Goliath();
            OptimusPrime optimusPrime = new OptimusPrime();
            var          listedHeroes = (from r in context.Heroes
                                         where r.heroId == id
                                         select r.heroName).FirstOrDefault();

            if (listedHeroes.ToString() == hulk.heroName || listedHeroes.ToString() == batman.heroName || listedHeroes.ToString() == goliath.heroName || listedHeroes.ToString() == optimusPrime.heroName)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
コード例 #4
0
    public static Enemy create_enemy(int ID)
    {
        Enemy e = null;

        if (ID == GALTSA)
        {
            e = new Galtsa();
        }
        else if (ID == GREM)
        {
            e = new Grem();
        }
        else if (ID == ENDU)
        {
            e = new Endu();
        }
        else if (ID == KOROTE)
        {
            e = new Korote();
        }
        else if (ID == MOLNER)
        {
            e = new Molner();
        }
        else if (ID == ETUENA)
        {
            e = new Etuena();
        }
        else if (ID == CLYPTE)
        {
            e = new Clypte();
        }
        else if (ID == GOLIATH)
        {
            e = new Goliath();
        }
        else if (ID == KVERM)
        {
            e = new Kverm();
        }
        else if (ID == LATU)
        {
            e = new Latu();
        }
        else if (ID == EKE_TU)
        {
            e = new Eke_tu();
        }
        else if (ID == OETEM)
        {
            e = new Oetem();
        }
        else if (ID == EKE_FU)
        {
            e = new Eke_fu();
        }
        else if (ID == EKE_SHI_AMI)
        {
            e = new Eke_shi_ami();
        }
        else if (ID == EKE_LORD)
        {
            e = new Eke_Lord();
        }
        else if (ID == KETEMCOL)
        {
            e = new Ketemcol();
        }
        else if (ID == MAHUKIN)
        {
            e = new Mahukin();
        }
        else if (ID == DRONGO)
        {
            e = new Drongo();
        }
        else if (ID == MAHEKET)
        {
            e = new Maheket();
        }
        else if (ID == CALUTE)
        {
            e = new Calute();
        }
        else if (ID == ETALKET)
        {
            e = new Etalket();
        }
        else if (ID == MUATEM)
        {
            e = new Muatem();
        }
        else if (ID == DRAK)
        {
            e = new Drak();
        }
        else if (ID == ZERRKU)
        {
            e = new Zerrku();
        }
        else if (ID == GOKIN)
        {
            e = new Gokin();
        }
        else if (ID == TAJAQAR)
        {
            e = new Tajaqar();
        }
        else if (ID == TAJAERO)
        {
            e = new Tajaero();
        }
        else if (ID == TERRA_QUAL)
        {
            e = new Terra_Qual();
        }
        else if (ID == DUALE)
        {
            e = new Duale();
        }
        else if (ID == MELD_SPEARMAN)
        {
            e = new Meld_Spearman();
        }
        else if (ID == MELD_WARRIOR)
        {
            e = new Meld_Warrior();
        }
        return(e);
    }
コード例 #5
0
        public static void NewRace(Character character)
        {
            switch (character.ChosenRace)
            {
            case "Aasimar(Protector)":
                Aasimar.Protector(character);
                break;

            case "Aasimar(Scourge)":
                Aasimar.Scourge(character);
                break;

            case "Aasimar(Fallen)":
                Aasimar.Fallen(character);
                break;

            case "Cambion":
                Cambion.Base(character);
                break;

            case "Changeling":
                Changeling.Base(character);
                break;

            case "Dhampir":
                Dhampir.Base(character);
                break;

            case "Dragonborn":
                Dragonborn.Base(character);
                break;

            case "Hill Dwarf":
                Dwarf.Hill(character);
                break;

            case "Mountain Dwarf":
                Dwarf.Mountain(character);
                break;

            case "Avariel":
                Elf.Avariel(character);
                break;

            case "Drow":
                Elf.Drow(character);
                break;

            case "Eladrin":
                Elf.Eladrin(character);
                break;

            case "Moon Elf":
                Elf.Moon(character);
                break;

            case "Sea Elf":
                Elf.Sea(character);
                break;

            case "Shadar-Kai":
                Elf.ShadarKai(character);
                break;

            case "High Elf":
                Elf.High(character);
                break;

            case "Wild Elf":
                Elf.Wild(character);
                break;

            case "Wood Elf":
                Elf.Wood(character);
                break;

            case "Forest Gnome":
                Gnome.Forest(character);
                break;

            case "Rock Gnome":
                Gnome.Rock(character);
                break;

            case "Goliath":
                Goliath.Base(character);
                break;

            case "Half-Elf":
                HalfElf.Base(character);
                break;

            case "Half-Orc":
                HalfOrc.Base(character);
                break;

            case "Lightfoot Halfling":
                Halfling.Lightfoot(character);
                break;

            case "Stout Halfling":
                Halfling.Stout(character);
                break;

            case "Human":
                Human.Base(character);
                break;

            case "Variant Human":
                Human.Variant(character);
                break;

            case "Minotaur":
                Minotaur.Base(character);
                break;

            case "Shade":
                Shade.Base(character);
                break;

            case "Tiefling":
                Tiefling.Base(character);
                break;

            case "Feral Tiefling":
                Tiefling.Feral(character);
                break;

            case "Demigod":
                Demigod.Base(character);
                break;
            }
        }