Beispiel #1
0
    @Override
    public void onDeath(Creature actor, Creature killer) {
      Player player = actor.getPlayer();
      if (player == null) {
        return;
      }

      player.removeListener(this);

      _quest.notifyDeath(killer, actor, QuestState.this);
    }
Beispiel #2
0
 public void removePlayerOnKillListener() {
   if (_onKillListener != null) {
     _player.removeListener(_onKillListener);
   }
 }