public void useSpell(Hero hero, int portal) { location = hero.getLocation(); location.setX(location.getX() + 1); location.setX(location.getX() + 1); hero.removeItemFromInventory(new Spell(portal)); }
public void Teleport(Hero hero, Monster monster) { monster.setLocation(hero.getLocation()); }