Esempio n. 1
0
 public void process() {
   if (action != null) {
     if (player.isDead()) {
       forceStop();
     } else if (!action.process(player)) {
       forceStop();
     }
   }
   if (actionDelay > 0) {
     actionDelay--;
     return;
   }
   if (action == null) return;
   int delay = action.processWithDelay(player);
   if (delay == -1) {
     forceStop();
     return;
   }
   actionDelay += delay;
 }