use of org.apollo.game.session.GameSession in project apollo by apollo-rsps.
the class GameService method pulse.
/**
* Called every pulse.
*/
public synchronized void pulse() {
finalizeRegistrations();
finalizeUnregistrations();
MobRepository<Player> players = world.getPlayerRepository();
for (Player player : players) {
GameSession session = player.getSession();
if (session != null) {
session.handlePendingMessages(handlers);
}
}
world.pulse();
synchronizer.synchronize(players, world.getNpcRepository());
}
Aggregations