Package role
Class SceneryModel
java.lang.Object
role.EntityModel
role.SceneryModel
- All Implemented Interfaces:
Configuration,Cloneable,Comparable<EntityModel>
This class models sceneries that roll across the screen.
Sceneries are not subject to physics or other interactions.
- Author:
- Krish Pillai
-
Nested Class Summary
Nested classes/interfaces inherited from interface common.Configuration
Configuration.Direction -
Field Summary
Fields inherited from interface common.Configuration
AUDIO_DIR, DEFAULT_FRAME_RATE, DRAWABLE_DIR, GAMELOGGER, setViewCallChain -
Constructor Summary
ConstructorsConstructorDescriptionSceneryModel(int width, int height) Constructor taking the width and height of the canvas or container in which the scenery should be renderedSceneryModel(int width, int height, int layer) Constructor taking the width and height of the canvas or container in which the scenery should be rendered. -
Method Summary
Methods inherited from class role.EntityModel
clone, collidesWith, compareTo, dispose, equals, getBearingDegrees, getBearingRadians, getCoefficientOfRestitution, getCollisionBounds, getCollisionRange, getHitboxHeight, getHitboxWidth, getID, getLayer, getMass, getName, getScaleX, getScaleY, getSpeed, getTimeToLive, getX, getXAcceleration, getXLocation, getXVelocity, getY, getYAcceleration, getYLocation, getYVelocity, hashCode, isActive, isAnimated, isDisposed, isGhost, isShowBounds, isVisible, isWrappedMode, poachState, resetCollisionBounds, resetEntityState, setActive, setAnimation, setCoefficientOfRestitution, setCollisionBounds, setCollisionBounds, setGhost, setLayer, setLocation, setMass, setName, setScale, setScale, setShowBounds, setTimeToLive, setVelocityDegrees, setVelocityRadians, setVisible, setWrappedMode, setXAcceleration, setXLocation, setXVelocity, setYAcceleration, setYLocation, setYVelocity, toString
-
Constructor Details
-
SceneryModel
public SceneryModel(int width, int height) Constructor taking the width and height of the canvas or container in which the scenery should be rendered- Parameters:
width- The width of the canvasheight- The height of the canvas
-
SceneryModel
public SceneryModel(int width, int height, int layer) Constructor taking the width and height of the canvas or container in which the scenery should be rendered. The layer may be specified for layering one scenery over another. Lower layer are clobbered by higher layers.- Parameters:
width- The width of the canvasheight- The height of the canvaslayer- The layer on which this scenery appears
-
-
Method Details
-
updateParameters
public final void updateParameters(long elapsedTime)
-