FROG

FROG Recognizer of Gestures

Sprite Interface Reference

Inheritance diagram for Sprite:

List of all members.

Public Member Functions

void draw (Graphics g)
 Draws this sprite to the given Graphics context.
int kill ()
 Disables this sprite's draw method.
void update ()
 Causes this sprite update its current state.

Member Function Documentation

void draw ( Graphics  g  ) 

Draws this sprite to the given Graphics context.

Parameters:
g the Graphics context this sprite should draw itself to.

Implemented in CowSprite, and UFOSprite.

int kill (  ) 

Disables this sprite's draw method.

Performs any necessary clean up and displays any effects that need to appear upon this object's death. Some sprites may be worth points when they are killed. If this is the case, kill will return those points as an integer.

Returns:
number of points this sprite is worth, if any.

Implemented in CowSprite, and UFOSprite.

void update (  ) 

Causes this sprite update its current state.

This may be moving by one step or adjusting it's current display picture.

Implemented in CowSprite, and UFOSprite.


The documentation for this interface was generated from the following file:
  • /Users/dev/Documents/SVN brazos.cs.tcu.edu/trunk/FROG/src/frog/demo/Sprite.java
 All Classes Namespaces Files Functions Variables