|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.TimerTask
com.ericsson.tic.vi.WorldTimer
public class WorldTimer
Performs and schedules updates to the world state.
| Field Summary | |
|---|---|
private Camera |
camera
The camera which is associated with the renderer. |
private ViewPanel |
pv
The viewpanel which is the parent of the renderer. |
private Renderer |
r
The renderer that this timer is associated with. |
| Constructor Summary | |
|---|---|
WorldTimer(Renderer r,
Camera camera,
ViewPanel pv)
Creates a timer. |
|
| Method Summary | |
|---|---|
void |
run()
Schedules calls to the update function at regular intervalls. |
void |
updateWorld()
Updates the world state. |
| Methods inherited from class java.util.TimerTask |
|---|
cancel, scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Renderer r
private Camera camera
private ViewPanel pv
| Constructor Detail |
|---|
public WorldTimer(Renderer r,
Camera camera,
ViewPanel pv)
| Method Detail |
|---|
public void run()
run in interface Runnablerun in class TimerTaskpublic void updateWorld()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||