us.asciiroth.client.core
Class AnimationManager

java.lang.Object
  extended by com.google.gwt.user.client.Timer
      extended by us.asciiroth.client.core.AnimationManager
All Implemented Interfaces:
GameListener

public class AnimationManager
extends com.google.gwt.user.client.Timer
implements GameListener

The class that executes the animation timeline, using an AnimationProxy to bridge between the immutable nature of game pieces (all instances of a piece on the board are the same piece) and their occurrence at specific places and at different moments on the animation timeline (each instance has unique animation-based state in the proxy).


Constructor Summary
AnimationManager()
          Constructor.
 
Method Summary
 void onGamePaused()
          The game has been paused.
 void onGameResumed()
          The game has been resumed.
 void run()
          Main animation loop.
 
Methods inherited from class com.google.gwt.user.client.Timer
cancel, schedule, scheduleRepeating
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnimationManager

public AnimationManager()
Constructor.

Method Detail

onGamePaused

public void onGamePaused()
The game has been paused. Pauses animation.

Specified by:
onGamePaused in interface GameListener

onGameResumed

public void onGameResumed()
The game has been resumed. Resumes animation.

Specified by:
onGameResumed in interface GameListener

run

public void run()
Main animation loop.

Specified by:
run in class com.google.gwt.user.client.Timer

0.7

2009 Alx Dark