simulation_Lab06Version
Class AnimationModel

java.lang.Object
  extended by simulation_Lab06Version.AnimationModel
All Implemented Interfaces:
Model

public class AnimationModel
extends Object
implements Model

This class encapsulates a world that consists 20 basic sprites. At each successive frame, each sprite moves.

Author:
mb

Constructor Summary
AnimationModel()
          Constructs an animation model.
 
Method Summary
 void drawNewFrame(Graphics2D graphics)
           
 int getWorldHeight()
           
 int getWorldWidth()
           
 void setWorldHeight(int worldHeight)
           
 void setWorldWidth(int worldWidth)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnimationModel

public AnimationModel()
Constructs an animation model.

Method Detail

drawNewFrame

public void drawNewFrame(Graphics2D graphics)
Specified by:
drawNewFrame in interface Model

getWorldWidth

public int getWorldWidth()
Specified by:
getWorldWidth in interface Model

setWorldWidth

public void setWorldWidth(int worldWidth)

getWorldHeight

public int getWorldHeight()
Specified by:
getWorldHeight in interface Model

setWorldHeight

public void setWorldHeight(int worldHeight)