|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.game.PhysicsScheduler
public class PhysicsScheduler
Run physics/simulation tasks on a fixed schedule without taxing the global metronome
| Nested Class Summary | |
|---|---|
private static class |
PhysicsScheduler.Crankshaft
helper class buddy |
| Field Summary | |
|---|---|
private static ConcurrentHashMap<AcceptsMetronomeTicks,ScheduledFuture<?>> |
futures
Who's scheduled |
private static ScheduledExecutorService |
scheduler
Universal scheduler |
| Constructor Summary | |
|---|---|
PhysicsScheduler()
|
|
| Method Summary | |
|---|---|
static void |
purgeFutures()
Look for errors in the futures |
static void |
shutdown()
stop all currently-scheduled threads |
static ScheduledFuture<?> |
start(AcceptsMetronomeTicks engine)
start a new timer thread |
static void |
stop(AcceptsMetronomeTicks engine)
stop ticking a fellow |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static ConcurrentHashMap<AcceptsMetronomeTicks,ScheduledFuture<?>> futures
private static final ScheduledExecutorService scheduler
| Constructor Detail |
|---|
public PhysicsScheduler()
| Method Detail |
|---|
public static void purgeFutures()
public static void shutdown()
public static ScheduledFuture<?> start(AcceptsMetronomeTicks engine)
engine - who
public static void stop(AcceptsMetronomeTicks engine)
engine - who
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||