public class SpyArea1 extends OracleSpell { String spellName = "Far Sight"; int manaCost = 5; int level = 1; String description = "The crystal ball will show you an unknown area you would not "+ "otherwise have seen"; String[] targets = {}; String target; public void cast(Fod game, int playerNr, String arg) { boolean ready = false; while(!ready){ Area a = game.Map[Dice.rand(game.world.X_SIZE-1)][Dice.rand(game.world.Y_SIZE-1)]; if(!game.players[playerNr].scannedareas.contains(a)){ game.players[playerNr].scannedareas.addElement(a); ready = true; } } } ////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; } }