|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.tudey.server.util.SceneTicker
public abstract class SceneTicker
Ticks some number of scene managers.
| Nested Class Summary | |
|---|---|
static class |
SceneTicker.DedicatedThread
Ticks the scenes on a dedicated thread. |
static class |
SceneTicker.EventThread
Ticks the scenes on the event thread. |
| Constructor Summary | |
|---|---|
SceneTicker(RunQueue runQueue,
int targetInterval)
Creates a new scene ticker. |
|
| Method Summary | |
|---|---|
void |
add(TudeySceneManager scenemgr)
Adds a scene manager to be ticked. |
boolean |
contains(TudeySceneManager scenemgr)
Checks whether the specified scene manager is being ticked. |
int |
getActualInterval()
Returns the average actual interval. |
void |
remove(TudeySceneManager scenemgr)
Removes a scene manager. |
void |
setTargetInterval(int interval)
Sets the target interval. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SceneTicker(RunQueue runQueue,
int targetInterval)
| Method Detail |
|---|
public void setTargetInterval(int interval)
public int getActualInterval()
public void add(TudeySceneManager scenemgr)
public void remove(TudeySceneManager scenemgr)
public boolean contains(TudeySceneManager scenemgr)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||