com.threerings.tudey.server.util
Class SceneTicker

java.lang.Object
  extended by com.threerings.tudey.server.util.SceneTicker
Direct Known Subclasses:
SceneTicker.DedicatedThread, SceneTicker.EventThread

public abstract class SceneTicker
extends Object

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

SceneTicker

public SceneTicker(RunQueue runQueue,
                   int targetInterval)
Creates a new scene ticker.

Method Detail

setTargetInterval

public void setTargetInterval(int interval)
Sets the target interval.


getActualInterval

public int getActualInterval()
Returns the average actual interval.


add

public void add(TudeySceneManager scenemgr)
Adds a scene manager to be ticked.


remove

public void remove(TudeySceneManager scenemgr)
Removes a scene manager.


contains

public boolean contains(TudeySceneManager scenemgr)
Checks whether the specified scene manager is being ticked.



Copyright © 2011. All Rights Reserved.