public static void Spark(Character Caster, List<XNAObject> Targets) { foreach (Creature Creature in Targets) { Creature.Damage(5); } }
public static void Fireball(Character Caster = null, List<XNAObject> Targets = null) { foreach (Character Character in Targets) { Character.Damage(10); } }
public static void BasicAttack(Character Attacker = null, List<XNAObject> Targets = null) { foreach (Character Character in Targets) { Character.Damage(4); } }
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; } }
public MoveCommand(Character character, Point mapPoint) { Character = character; MapPoint = mapPoint; }
public MoveCommand(Character character) { Character = character; }
public static void Heal(Character Caster, List<XNAObject> Targets) { Caster.HP.Current += 5; Debug.WriteLine("Blessed Healing!"); }
public virtual void Resolve(Character character = null, List<XNAObject> targets = null) { Method(character, targets); }