Ejemplo n.º 1
0
 @Override
 public void fire(Player player, Sentence sentence, EventRaiser npc) {
   if (board.getPlayerName() != null) {
     npc.say(
         "Sorry, "
             + player.getName()
             + " there is already a game in progress. Please wait a little.");
     return;
   }
   board.setPlayerName(player.getName());
 }
Ejemplo n.º 2
0
 /**
  * try to remove the content from the world-
  *
  * @return <code>true</code>
  */
 @Override
 public boolean removeFromWorld() {
   NPCList.get().remove("Paul Sheriff");
   zone.remove(npc);
   board.remove();
   return true;
 }
Ejemplo n.º 3
0
  @Override
  public void addToWorld() {
    zone = SingletonRepository.getRPWorld().getZone("0_semos_mountain_n2");

    addBoard();
    addNPC();
    board.setNPC(npc);
  }