Exemple #1
0
 @Override
 public boolean onEnvironmentEvent(EnvironmentEvent event) {
   if (event == null) throw new NullPointerException("event may not be null");
   switch (event.getCode()) {
     case REFRESH:
       refresh();
       return true;
     default:
       return region.onEnvironmentEvent(event, hotPointX, hotPointY);
   }
 }
Exemple #2
0
 @Override
 public boolean onEnvironmentEvent(EnvironmentEvent event) {
   NullCheck.notNull(event, "event");
   if (closing.onEnvironmentEvent(event)) return true;
   if (region.onEnvironmentEvent(event, hotPointX, hotPointY)) return false;
   switch (event.getCode()) {
     case REFRESH:
       refresh();
       return true;
     case INTRODUCE:
       luwrain.silence();
       luwrain.playSound(Sounds.INTRO_POPUP);
       luwrain.say(getAreaName());
       return true;
     default:
       return false;
   }
 }
Exemple #3
0
 @Override
 public boolean onAreaQuery(AreaQuery query) {
   return region.onAreaQuery(query, hotPointX, hotPointY);
 }