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