Exemple #1
0
 @Override
 public void onEnterInstance(Player player) {
   if (!instanceReward.containPlayer(player.getObjectId())) {
     addPlayerReward(player);
   } else {
     getPlayerReward(player.getObjectId()).setPlayer(player);
   }
 }
Exemple #2
0
 protected CruciblePlayerReward getPlayerReward(Integer object) {
   return (CruciblePlayerReward) instanceReward.getPlayerReward(object);
 }
Exemple #3
0
 @SuppressWarnings("unchecked")
 protected void addPlayerReward(Player player) {
   instanceReward.addPlayerReward(new CruciblePlayerReward(player));
 }