コード例 #1
0
 private void preTick_native(float f) {
   AppTask task = pQueue.poll();
   task = pQueue.poll();
   while (task != null) {
     while (task.isCancelled()) {
       task = pQueue.poll();
     }
     try {
       task.invoke();
     } catch (Exception ex) {
       logger.log(Level.SEVERE, null, ex);
     }
     task = pQueue.poll();
   }
   for (Iterator<PhysicsTickListener> it = tickListeners.iterator(); it.hasNext(); ) {
     PhysicsTickListener physicsTickCallback = it.next();
     physicsTickCallback.prePhysicsTick(this, f);
   }
 }
コード例 #2
0
 private void postTick_native(float f) {
   for (Iterator<PhysicsTickListener> it = tickListeners.iterator(); it.hasNext(); ) {
     PhysicsTickListener physicsTickCallback = it.next();
     physicsTickCallback.physicsTick(this, f);
   }
 }