|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimulation_InteractiveVersion.gameWorlds.GameWorldModel
simulation_InteractiveVersion.gameWorlds.ChaosWorld
public class ChaosWorld
This class encapsulates a world that consists 40 sprites: 10 of each subclass.
Field Summary |
---|
Fields inherited from class simulation_InteractiveVersion.gameWorlds.GameWorldModel |
---|
logger |
Constructor Summary | |
---|---|
ChaosWorld(int worldWidth,
int worldHeight)
|
Method Summary | |
---|---|
void |
advanceNextState()
Updates the data model to reflect whatever actions occur in the duration of one new frame. |
void |
drawCurrentState(java.awt.Graphics2D graphics)
|
Methods inherited from class simulation_InteractiveVersion.gameWorlds.GameWorldModel |
---|
addAnotherSprite, addListener, notifyModelHasChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChaosWorld(int worldWidth, int worldHeight)
Method Detail |
---|
public void advanceNextState()
GameWorldModel
advanceNextState
in class GameWorldModel
public void drawCurrentState(java.awt.Graphics2D graphics)
drawCurrentState
in class GameWorldModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |