Examples of notifyWorldAboutChanges()


Examples of games.stendhal.server.entity.Entity.notifyWorldAboutChanges()

            changed.remove(stat);
          }
        }

        changed.update();
        changed.notifyWorldAboutChanges();
      }
    }
  }

  protected boolean isParsableByInteger(final Definition type) {
View Full Code Here

Examples of games.stendhal.server.entity.creature.Creature.notifyWorldAboutChanges()

      creature.setDef(newdef);
      creature.initHP(newHP);
      creature.setXP(newXP);

      creature.update();
      creature.notifyWorldAboutChanges();


    }
  }
View Full Code Here

Examples of games.stendhal.server.entity.creature.Pet.notifyWorldAboutChanges()

        logger.warn("Could not place pet: " + pet);
        player.sendPrivateText("You can not seem to locate your "
            + pet.getTitle() + ".");
      }

      pet.notifyWorldAboutChanges();
    }
  }
 
  /**
   * Loads the items into the slots of the player on login.
View Full Code Here

Examples of games.stendhal.server.entity.creature.Sheep.notifyWorldAboutChanges()

        logger.warn("Could not place sheep: " + sheep);
        player.sendPrivateText("You can not seem to locate your "
            + sheep.getTitle() + ".");
      }

      sheep.notifyWorldAboutChanges();
    }

    // load pet
    final Pet pet = player.getPetOwner().retrievePet();
View Full Code Here

Examples of games.stendhal.server.entity.item.Item.notifyWorldAboutChanges()

      newItem.setPosition(x, y);
      if (newItem != item) {
        zone.add(newItem);
      }
      newItem.notifyWorldAboutChanges();
      newItem.onPutOnGround(player);

      new ItemLogger().displace(player, newItem, zone, oldX, oldY, x, y);
    } else {
      entity.setPosition(x, y);
View Full Code Here

Examples of games.stendhal.server.entity.player.Player.notifyWorldAboutChanges()

        }
      }
     
      SingletonRepository.getAchievementNotifier().onKill(killer);

      killer.notifyWorldAboutChanges();
    }
  }

  /**
   * This method is called when the entity has been killed ( hp==0 ).
View Full Code Here

Examples of games.stendhal.server.entity.player.Player.notifyWorldAboutChanges()

        playersRmText.add(player);

        // place the player and his pets into the world
        PlayerTransformer.placePlayerIntoWorldOnLogin(object, player);
        PlayerTransformer.placeSheepAndPetIntoWorld(player);
        player.notifyWorldAboutChanges();
        StendhalRPAction.transferContent(player);

        getOnlinePlayers().add(player);

        if (!player.isGhost()) {
View Full Code Here

Examples of games.stendhal.server.entity.player.Player.notifyWorldAboutChanges()

      new GameEvent(player.getName(), SUPPORTANSWER, action.get(TARGET), reply).raise();
      if (supported != null) {

        supported.sendPrivateText(NotificationType.SUPPORT, "Support (" + player.getTitle() + ") tells you: " + reply + " \nIf you wish to reply, use /support.");
        supported.notifyWorldAboutChanges();
        SingletonRepository.getRuleProcessor().sendMessageToSupporters(message);
       
      } else {
        // that player is not logged in. Do they exist at all or are they just offline? Try sending a message with postman.
        DBCommand command = new StoreMessageCommand(player.getName(), action.get(TARGET), "In answer to your support question:\n" + reply + " \nIf you wish to reply, use /support.", "S");
View Full Code Here

Examples of games.stendhal.server.entity.player.Player.notifyWorldAboutChanges()

        SingletonRepository.getTurnNotifier().notifyInSeconds(getDuration(), activity);
      }
    }

    player.notifyWorldAboutChanges();
    return true;
  }

  //
  //
View Full Code Here

Examples of games.stendhal.server.entity.player.Player.notifyWorldAboutChanges()

        } else {
          killer.setSharedKill(killedName);
        }
      }
     
      killer.notifyWorldAboutChanges();
     
    }
   
  }
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.