Class games.Battle.client.ClientApplet.ClientUpdater
All Packages Class Hierarchy This Package Previous Next Index
Class games.Battle.client.ClientApplet.ClientUpdater
java.lang.Object
|
+----games.Battle.client.ClientApplet.ClientUpdater
- public class ClientUpdater
- extends Object
- implements Runnable
The client updater is simple a thread that sleeps until somebody
wakes it up to redraw the board, and then it goes back to sleep
again.
-
ClientUpdater(ClientBoard, ClientLook)
- Construct a ClientUpdater with the given ClientBoard
and ClientLook.
-
run()
- The run method executed by the thread.
-
setLook(ClientLook)
- Set the look for this updater.
-
stop()
- Stop the updater thread from executing.
-
update()
- Called to wake up the thread and update the board.
-
updateLook()
- Physically update the contents of the display with the board
information.
ClientUpdater
public ClientUpdater(ClientBoard board,
ClientLook look)
- Construct a ClientUpdater with the given ClientBoard
and ClientLook.
- Parameters:
- board - the ClientBoard this updater will update from
- look - the ClientLook this updater will update with
setLook
public synchronized void setLook(ClientLook look)
- Set the look for this updater.
- Parameters:
- look - the look instance to reference from now on
update
public void update()
- Called to wake up the thread and update the board.
updateLook
protected synchronized void updateLook()
- Physically update the contents of the display with the board
information.
run
public void run()
- The run method executed by the thread. The method basically
loops, performing a) board updates and then b) suspending
itself. The updates is "woken" up by a call to "update";
stop
public void stop()
- Stop the updater thread from executing.
All Packages Class Hierarchy This Package Previous Next Index