Class games.Battle.client.ClientApplet.ClientArcadeAnimator
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class games.Battle.client.ClientApplet.ClientArcadeAnimator

java.lang.Object
   |
   +----games.Battle.client.ClientApplet.ClientArcadeAnimator

public class ClientArcadeAnimator
extends Object
implements Runnable

Constructor Index

 o ClientArcadeAnimator(Graphics, int, int, Image[], int, int)
Construct a ClientArcadeAnimator.

Method Index

 o run()
The main body for the ClientArcadeAnimator runnable.

Constructors

 o ClientArcadeAnimator
  public ClientArcadeAnimator(Graphics g,
                              int x,
                              int y,
                              Image images[],
                              int fps,
                              int dur)
Construct a ClientArcadeAnimator. This runnable, when started as a thread will draw the array of images to the graphics context at the location (x,y) for dur frames at fps frames per second.
Parameters:
g - the Graphics context
x - the x location to draw
y - the y location to draw
images - the array of images to animate
fps - the number of frames to draw per second
dur - the total number of frames to animate
See Also:
Graphics, Image

Methods

 o run
  public void run()
The main body for the ClientArcadeAnimator runnable. The method just loops and delays at appropriate values to achieve the results specified in the contructor.

All Packages  Class Hierarchy  This Package  Previous  Next  Index