コード例 #1
0
 public final void onControlTick(final Enemy aEnemy) {
   final Enemy source = aEnemy.syncSource;
   if (!source.active) {
     aEnemy.setController(Enemy.ENTERING);
   } else if (source.path != null) {
     aEnemy.syncPathTo(source);
   } else {
     aEnemy.onEndOfPath();
   }
 }
コード例 #2
0
 public final void onInitialize(final Enemy aEnemy) {
   aEnemy.syncPathTo(aEnemy.syncSource);
 }