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 removeKnight(Hero hero) { knights.removeKnight(hero); }
public void Teleport(Hero hero, Monster monster) { monster.setLocation(hero.getLocation()); }
public void addKnight(Hero hero) { knights.addKnight(hero); }
public void Teleport(Hero hero) { hero.setLocation(new Location(0, 0)); }