Spell.Targeted healSpell = new Spell.Targeted("healing spell", 50); // Create a heal spell with a power of 50 PlayerCharacter target = PlayerCharacter.FindByName("Alice"); // Find the player character named Alice healSpell.Cast(target); // Cast the heal spell on Alice
Spell.Targeted fireball = new Spell.Targeted("fireball", 100); // Create a fireball spell with a power of 100 Enemy target = Enemy.FindByName("Orc"); // Find the enemy named Orc fireball.Cast(target); // Cast the fireball spell on OrcBased on the code examples and the package naming convention, Spell.Targeted is likely part of a larger game development library package. It could be a part of a library like "RPGKit" or "GameTools".