Package role

Class SceneryModel

All Implemented Interfaces:
Configuration, Cloneable, Comparable<EntityModel>

public abstract class SceneryModel extends EntityModel
This class models sceneries that roll across the screen. Sceneries are not subject to physics or other interactions.
Author:
Krish Pillai
  • 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 canvas
      height - 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 canvas
      height - The height of the canvas
      layer - The layer on which this scenery appears
  • Method Details

    • updateParameters

      public final void updateParameters(long elapsedTime)