simulation_Lab06Version
Class AnimationModel
java.lang.Object
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
AnimationModel
public AnimationModel()
- Constructs an animation model.
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)