|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimulation_SpriteVersion.SkitteryWorld
public class SkitteryWorld
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).
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 |
---|
public SkitteryWorld(int worldWidth, int worldHeight)
Method Detail |
---|
public void drawNewFrame(java.awt.Graphics2D graphics)
GameWorldModel
drawNewFrame
in interface GameWorldModel
graphics
- as described above
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |