com.croftsoft.apps.road
Class EnemySprite
java.lang.Object
com.croftsoft.core.animation.sprite.AbstractSprite
com.croftsoft.core.animation.sprite.IconSprite
com.croftsoft.apps.road.EnemySprite
- All Implemented Interfaces:
- Constants, ComponentAnimator, ComponentPainter, ComponentUpdater, Sprite
public final class EnemySprite
- extends IconSprite
- implements Constants
Roadrunner enemy Sprite.
- Since:
- 2003-09-10
- Version:
- 2003-11-09
- Author:
- David Wallace Croft
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 |
Method Summary |
void |
update(JComponent component)
Updates the state of a JComponent and calls repaint() as required. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnemySprite
public EnemySprite(Icon enemyIcon,
Car car,
Timekeeper timekeeper,
Random random)
update
public void update(JComponent component)
- Description copied from interface:
com.croftsoft.core.animation.ComponentUpdater
- Updates the state of a JComponent and calls repaint() as required.
- Specified by:
update
in interface ComponentUpdater
- Overrides:
update
in class AbstractSprite
CroftSoft Apps Javadoc (2008-09-28 21:15:07)