vooga.widget
Class Counter

java.lang.Object
  extended by Sprite
      extended by vooga.widget.Counter

public class Counter
extends Sprite

Counter displays the images for a countdown to the start of the game


Constructor Summary
Counter(int startPoint, int timePerImage, int timeAtEnd, int width, GameStateManager stateManager, GameState switchTo)
          Creats a counter to countdown to something then switch states.
 
Method Summary
 void update(long elapsedTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Counter

public Counter(int startPoint,
               int timePerImage,
               int timeAtEnd,
               int width,
               GameStateManager stateManager,
               GameState switchTo)
Creats a counter to countdown to something then switch states. All images must be initialized in resources before this is called.

Parameters:
startPoint - - the number to start at.
timePerImage - - time to spend on each image of the counter
timeAtEnd - - time to spend on the last image of the counter
width - - width of the images, scales the height to this width
stateManager - - the GameStateManger of the game
switchTo - - the GameState to switch to when the counter is done.
Method Detail

update

public void update(long elapsedTime)