예제 #1
0
        public bool CanExecute(Spell spell)
        {
            if (Character.AP.Current == 0)
            {
                return false;
            }

            if (Character.MP.Current < Spell.BaseManaCost)
            {
                Debug.WriteLine("Not enough Mana!");
                return false;
            }
            else
            {
                return true;
            }
        }
예제 #2
0
                public static Spell Fireball()
                {
                    Spell spell = new Spell();
                    spell.TargetType = TargetType.Multiple;
                    spell.SpellName = "Fireball";
                    spell.Method = Methods.Fireball;
                    spell.Range = 1;
                    spell.BaseManaCost = 6;
                    spell.APCost = 1;

                    return spell;
                }
예제 #3
0
                public static Spell Heal()
                {
                    Spell spell = new Spell();
                    spell.TargetType = TargetType.Self;
                    spell.SpellName = "Heal";
                    spell.Method = Methods.Heal;
                    spell.BaseManaCost = 3;
                    spell.APCost = 1;

                    return spell;
                }
예제 #4
0
                public static Spell Spark()
                {
                    Spell spell = new Spell();
                    spell.TargetType = TargetType.Single;
                    spell.SpellName = "Spark";
                    spell.Method = Methods.Spark;
                    spell.BaseManaCost = 3;
                    spell.APCost = 1;

                    return spell;
                }