Exemplo n.º 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));
        }
Exemplo n.º 2
0
Arquivo: Player.cs Projeto: djvorr/SSE
 public void removeKnight(Hero hero)
 {
     knights.removeKnight(hero);
 }
Exemplo n.º 3
0
 public void Teleport(Hero hero, Monster monster)
 {
     monster.setLocation(hero.getLocation());
 }
Exemplo n.º 4
0
Arquivo: Player.cs Projeto: djvorr/SSE
 public void addKnight(Hero hero)
 {
     knights.addKnight(hero);
 }
Exemplo n.º 5
0
 public void Teleport(Hero hero)
 {
     hero.setLocation(new Location(0, 0));
 }