import java.util.*; public class GrowDragon1 extends GaiasLore { String target; String spellName; int manaCost; int level; String[] targets = {"dragon"}; String description; GrowDragon1(){ spellName = "Hardened skin"; manaCost = 12; level = 2; description = "The skin of the dragon will be hard as the bark of an old oak"; } /** * 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); Object o = game.dragons.get(arg); if(o!=null){ Dragon d = (Dragon)o; d.incStr(7); d.incSpd(-3); d.incPcp(-2); d.Looks[1] = 1; } } ////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; } }