simulation_SpriteVersion
Class BoringWorld

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

public class BoringWorld
extends java.lang.Object
implements GameWorldModel

This class encapsulates a boring world that consists of a single BasicSprite.

Author:
mb

Constructor Summary
BoringWorld(int worldWidth, int worldHeight)
          Instantiates a BoringWorld with the passed world dimensions.
 
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

BoringWorld

public BoringWorld(int worldWidth,
                   int worldHeight)
Instantiates a BoringWorld with the passed world dimensions.

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