com.croftsoft.apps.road
Class EnemySprite

java.lang.Object
  extended by com.croftsoft.core.animation.sprite.AbstractSprite
      extended by com.croftsoft.core.animation.sprite.IconSprite
          extended by 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

Field Summary
 
Fields inherited from class com.croftsoft.core.animation.sprite.AbstractSprite
componentPainter, componentUpdater, heading, velocity, x, y, z
 
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
 
Constructor Summary
EnemySprite(Icon enemyIcon, Car car, Timekeeper timekeeper, Random random)
           
 
Method Summary
 void update(JComponent component)
          Updates the state of a JComponent and calls repaint() as required.
 
Methods inherited from class com.croftsoft.core.animation.sprite.IconSprite
getCollisionBounds, getCollisionShape, getIcon, getPaintBounds, paint, setIcon, setX, setY
 
Methods inherited from class com.croftsoft.core.animation.sprite.AbstractSprite
getHeading, getVelocity, getX, getY, getZ, setComponentPainter, setComponentUpdater, setHeading, setVelocity, setZ
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnemySprite

public EnemySprite(Icon enemyIcon,
                   Car car,
                   Timekeeper timekeeper,
                   Random random)
Method Detail

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 Javadoc

CroftSoft Apps Javadoc (2008-09-28 21:15:07)