com.croftsoft.apps.zombie
Class ZombieReanimator
java.lang.Object
com.croftsoft.apps.zombie.ZombieReanimator
- All Implemented Interfaces:
- ZombieConstants, Clock, ComponentAnimator, ComponentPainter, ComponentUpdater
public final class ZombieReanimator
- extends Object
- implements Clock, ComponentAnimator, ZombieConstants
Animates the zombies.
- Since:
- 2002-02-17
- Version:
- 2003-07-17
- Author:
- David Wallace Croft
Fields inherited from interface com.croftsoft.apps.zombie.ZombieConstants |
BACKGROUND_IMAGE_FILENAME, BARK_AUDIO_FILENAME, FRAME_ICON_FILENAME, FRAME_RATE, FRAME_SIZE, FRAME_TITLE, HIT_AUDIO_FILENAME, INFO, SHOTGUN_AUDIO_FILENAME, SHUTDOWN_CONFIRMATION_PROMPT, TITLE, VERSION, ZOMBIE_COUNT, ZOMBIE_IMAGE_FILENAMES |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZombieReanimator
public ZombieReanimator()
getAnimatedComponent
public AnimatedComponent getAnimatedComponent()
getRandom
public Random getRandom()
getComponentWidth
public int getComponentWidth()
getComponentHeight
public int getComponentHeight()
currentTimeNanos
public long currentTimeNanos()
- Specified by:
currentTimeNanos
in interface Clock
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
paint
public void paint(JComponent component,
Graphics2D graphics)
- Specified by:
paint
in interface ComponentPainter
CroftSoft Apps Javadoc (2008-09-28 21:15:07)