com.croftsoft.apps.road.model.seri
Class SeriCar
java.lang.Object
com.croftsoft.core.animation.model.seri.SeriModel
com.croftsoft.apps.road.model.seri.SeriCar
- All Implemented Interfaces:
- Constants, Car, Model, ModelAccessor, Serializable, Comparable
public final class SeriCar
- extends SeriModel
- implements Car, Constants
Roadrunner hero car model.
- Since:
- 2003-11-09
- Version:
- 2003-11-09
- See Also:
- Serialized Form
- Author:
- David Wallace Croft
Fields inherited from class com.croftsoft.core.animation.model.seri.SeriModel |
modelId |
Fields inherited from interface com.croftsoft.apps.road.Constants |
APPLET_INFO, BACKGROUND_COLOR, CURSOR, ENEMY_IMAGE_FILENAME, ENEMY_VELOCITY, FONT, FOREGROUND_COLOR, FRAME_ICON_FILENAME, FRAME_RATE, FRAME_SIZE, FRAME_TITLE, IMAGE_FILENAME_EXTENSION, MEDIA_DIR, ROAD_RATE, RUNNER_IMAGE_FILENAME, RUNNER_VELOCITY, SHUTDOWN_CONFIRMATION_PROMPT, TILE_AREA_WIDTH, TILE_DIMENSION, TILE_IMAGE_FILENAMES, TILE_SIZE, TILE_TYPE_DIVIDER, TILE_TYPE_GRASS, TILE_TYPE_ROAD, TILE_TYPE_SHOULDER, TILE_TYPE_WALL, TILE_TYPES, TIME_DELTA_MAX, TITLE, VERSION |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SeriCar
public SeriCar(ModelId modelId,
Rectangle bounds)
isActive
public boolean isActive()
- Specified by:
isActive
in interface ModelAccessor
getCenterX
public double getCenterX()
- Specified by:
getCenterX
in interface ModelAccessor
getCenterY
public double getCenterY()
- Specified by:
getCenterY
in interface ModelAccessor
getShape
public Shape getShape()
- Specified by:
getShape
in interface ModelAccessor
isUpdated
public boolean isUpdated()
- Specified by:
isUpdated
in interface ModelAccessor
getZ
public double getZ()
- Specified by:
getZ
in interface ModelAccessor
setDestinationPoint
public void setDestinationPoint(Point destinationPoint)
- Specified by:
setDestinationPoint
in interface Car
setCenter
public void setCenter(double x,
double y)
- Specified by:
setCenter
in interface Model
prepare
public void prepare()
- Specified by:
prepare
in interface Model
update
public void update(double timeDelta)
- Specified by:
update
in interface Model
CroftSoft Apps Javadoc (2008-09-28 21:15:07)