예제 #1
0
 public static void Spark(Character Caster, List<XNAObject> Targets)
 {
     foreach (Creature Creature in Targets)
     {
         Creature.Damage(5);
     }
 }
예제 #2
0
 public static void Fireball(Character Caster = null, List<XNAObject> Targets = null)
 {
     foreach (Character Character in Targets)
     {
         Character.Damage(10);
     }
 }
예제 #3
0
 public static void BasicAttack(Character Attacker = null, List<XNAObject> Targets = null)
 {
     foreach (Character Character in Targets)
     {
         Character.Damage(4);
     }
 }
예제 #4
0
        public bool InRange(Character Character, int range)
        {
            Point point = new Point(Bounds.X + 32, Bounds.Y + 32);

            Point origin = new Point(Character.Bounds.X + 32, Character.Bounds.Y + 32);

            int radius = (range * 64 + 32) * (range * 64 + 32);

            int distance = ((point.X - origin.X) * (point.X - origin.X) + (point.Y - origin.Y) * (point.Y - origin.Y));

            if (distance < radius)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
예제 #5
0
 public MoveCommand(Character character, Point mapPoint)
 {
     Character = character;
     MapPoint = mapPoint;
 }
예제 #6
0
 public MoveCommand(Character character)
 {
     Character = character;
 }
예제 #7
0
 public static void Heal(Character Caster, List<XNAObject> Targets)
 {
     Caster.HP.Current += 5;
     Debug.WriteLine("Blessed Healing!");
 }
예제 #8
0
 public virtual void Resolve(Character character = null, List<XNAObject> targets = null)
 {
     Method(character, targets);
 }