com.croftsoft.apps.zombie
Class ZombieSprite

java.lang.Object
  extended by com.croftsoft.core.animation.sprite.AbstractSprite
      extended by com.croftsoft.core.animation.sprite.IconSprite
          extended by com.croftsoft.apps.zombie.ZombieSprite
All Implemented Interfaces:
ComponentAnimator, ComponentPainter, ComponentUpdater, Sprite

public class ZombieSprite
extends IconSprite

An IconSprite subclass representing a zombie.

Since:
2002-03-15
Version:
2003-07-11
Author:
David Wallace Croft

Field Summary
 
Fields inherited from class com.croftsoft.core.animation.sprite.AbstractSprite
componentPainter, componentUpdater, heading, velocity, x, y, z
 
Constructor Summary
ZombieSprite(double x, double y, double z, double heading, double velocity, Icon icon, ZombieReanimator zombieReanimator)
           
ZombieSprite(Icon icon, ZombieReanimator zombieReanimator)
           
 
Method Summary
 boolean isDestroyed()
           
 void reset()
           
 void setHit()
           
 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

ZombieSprite

public ZombieSprite(double x,
                    double y,
                    double z,
                    double heading,
                    double velocity,
                    Icon icon,
                    ZombieReanimator zombieReanimator)

ZombieSprite

public ZombieSprite(Icon icon,
                    ZombieReanimator zombieReanimator)
Method Detail

isDestroyed

public boolean isDestroyed()

setHit

public void setHit()

reset

public void reset()

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)