com.threerings.puzzle.client
Class PuzzleController.Updater

java.lang.Object
  extended by com.threerings.puzzle.client.PuzzleController.Updater
All Implemented Interfaces:
com.threerings.media.FrameParticipant
Enclosing class:
PuzzleController

protected class PuzzleController.Updater
extends Object
implements com.threerings.media.FrameParticipant

A special frame participant that handles the sending of puzzle progress updates. We can't just register an interval for this because sometimes the clock goes backwards in time in windows and our intervals don't get called for a long period of time which causes the server to think the client is disconnected or cheating and resign them from the puzzle. God bless you, Microsoft.


Field Summary
 long _lastProgressTick
           
 
Constructor Summary
protected PuzzleController.Updater()
           
 
Method Summary
 Component getComponent()
           
 boolean needsPaint()
           
 void tick(long tickStamp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_lastProgressTick

public long _lastProgressTick
Constructor Detail

PuzzleController.Updater

protected PuzzleController.Updater()
Method Detail

tick

public void tick(long tickStamp)
Specified by:
tick in interface com.threerings.media.FrameParticipant

needsPaint

public boolean needsPaint()
Specified by:
needsPaint in interface com.threerings.media.FrameParticipant

getComponent

public Component getComponent()
Specified by:
getComponent in interface com.threerings.media.FrameParticipant