Exemple #1
0
 @Override
 public void startTickRun(int stage, long delta) {
   switch (stage) {
     case 0:
       {
         age.set(age.get() + delta);
         parallelTaskManager.heartbeat(delta);
         taskManager.heartbeat(delta);
         for (Component component : values()) {
           component.tick(delta);
         }
         break;
       }
     default:
       {
         throw new IllegalStateException("Number of states exceeded limit for SpoutWorld");
       }
   }
 }
Exemple #2
0
 @Override
 public long getAge() {
   return age.get();
 }