simulation_SpriteVersion
Class SkitteryWorld

java.lang.Object
  extended by simulation_SpriteVersion.SkitteryWorld
All Implemented Interfaces:
GameWorldModel

public class SkitteryWorld
extends java.lang.Object
implements GameWorldModel

This class encapsulates a world that consists of a single ImageSprite that moves about in a very skittery manner (random movements in all possible directions).

Author:
mb

Constructor Summary
SkitteryWorld(int worldWidth, int worldHeight)
           
 
Method Summary
 void drawNewFrame(java.awt.Graphics2D graphics)
          Updates the data model to reflect whatever actions occur in the duration of one new frame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkitteryWorld

public SkitteryWorld(int worldWidth,
                     int worldHeight)
Method Detail

drawNewFrame

public void drawNewFrame(java.awt.Graphics2D graphics)
Description copied from interface: GameWorldModel
Updates the data model to reflect whatever actions occur in the duration of one new frame. Draws the game world on the passed Graphics2D instance.

Specified by:
drawNewFrame in interface GameWorldModel
Parameters:
graphics - as described above