예제 #1
0
        private void CreateSpellForCreature(Creature agent, Spells type, DrawerBattle myDrawer, InterfaceBattle myInterface)
        {
            Spell newSpell = null;

            switch (type)
            {
            case Spells.SkillMelee:
                newSpell = new SkillBasicAttackMelee(agent, myDrawer, myInterface, SpellTarget.Hex, 1,
                                                     Constants.APActionCostsStandard[(sbyte)APCostTypes.AttackMelee]);
                break;

            case Spells.SkillRanged:     // FIX RANGE
                newSpell = new SKillBasicAttackRanged(agent, myDrawer, myInterface, SpellTarget.Hex, 1,
                                                      Constants.APActionCostsStandard[(sbyte)APCostTypes.AttackMelee]);
                break;
            }

            agent.SpellAdd(newSpell);
        }