simulation_SpriteVersion
Interface Sprite

All Known Implementing Classes:
BasicSprite, BasicSpriteReverse, ImageSprite, RandomSprite

public interface Sprite

The interface encapsulates the definition of functionality for a Sprite, which is an entity that can be drawn in a game world and has its own behaviours.

Author:
mb

Method Summary
 void draw(java.awt.Graphics2D g)
          Takes the passed Graphics2D object and specifies how this sprite should be drawn on it.
 void move()
          Specify what should happen at each frame.
 

Method Detail

draw

void draw(java.awt.Graphics2D g)
Takes the passed Graphics2D object and specifies how this sprite should be drawn on it.


move

void move()
Specify what should happen at each frame.