org.classroomgaming.cgp.AnimatedSprite Class Reference

Inherits org::classroomgaming::cgp::Sprite, org::classroomgaming::cgp::GameModule::FrameListener, and org::classroomgaming::cgp::GameModule::Renderable.

Collaboration diagram for org.classroomgaming.cgp.AnimatedSprite:
[legend]

List of all members.

Public Member Functions

 AnimatedSprite (SpriteAnimation a[])
void setStyle (SpriteAnimation.Style s)
void render (Graphics g)
void ponder (float dt)
void play (String name)


Detailed Description

This class is an extension of Sprite that changes the image over time.
Author:
Ryan Ruff
Version:
0.0.3

Definition at line 30 of file AnimatedSprite.java.


Constructor & Destructor Documentation

org.classroomgaming.cgp.AnimatedSprite.AnimatedSprite ( SpriteAnimation  a[]  ) 

Extends sprite play animations.

Parameters:
a Set of animations to add

Definition at line 41 of file AnimatedSprite.java.


Member Function Documentation

void org.classroomgaming.cgp.AnimatedSprite.play ( String  name  ) 

Definition at line 69 of file AnimatedSprite.java.

void org.classroomgaming.cgp.AnimatedSprite.ponder ( float  dt  ) 

Todo:
use abstract AnimationStyler

Implements org.classroomgaming.cgp.GameModule.GameModule.FrameListener.

Definition at line 64 of file AnimatedSprite.java.

void org.classroomgaming.cgp.AnimatedSprite.render ( Graphics  g  ) 

Reimplemented from org.classroomgaming.cgp.Sprite.

Definition at line 59 of file AnimatedSprite.java.

void org.classroomgaming.cgp.AnimatedSprite.setStyle ( SpriteAnimation.Style  s  ) 

Sets playback style of animation

Parameters:
s Style

Definition at line 54 of file AnimatedSprite.java.


The documentation for this class was generated from the following file:

Generated on Tue May 5 04:51:56 2009 for CGP by  doxygen 1.5.8