import java.util.*; public class Animate2 extends Necromancy { String target; String spellName = "Animate Dragon"; int manaCost = 60; int level= 5; String[] targets = {}; String description = "With this spell you will summon a dragon from the realms of the dead. The dragon will be stronger than when alive, but will lack some of its speed and have a weak mind."; /** * Should as the string argument take city#cityname or dragon#dragonname */ public void cast(Fod game, int playerNr, String arg) { System.out.println("Player "+playerNr+" casts "+spellName+"on "+arg); //Hemstaden Area a =((City)game.cities.get(game.players[playerNr].homeCity)).getArea(game.Map); if(a!=null){ Dragon d = new Dragon(a); d.fake = true; d.Health = 20; d.Speed = 20; d.Strength = 70; d.Wisdom = 5; d.Owner = (short)playerNr; d.Looks[1] = 3; game.dragons.put(d.name,d); } } ////Primitves public String getSpellName(){ return spellName; } public String getDescription(){ return description; } public int getManaCost(){ return manaCost; } public int getLevel(){ return level; } public String[] getTargetProfile(){ return targets; } public String getTarget(){ return target; } public String setTarget(String t){ target = t; return target; } }