All Packages Class Hierarchy This Package Previous Next Index
Interface com.loki3.cyber.pawn.Unit
- public interface Unit
Units are objects which have a physical representation,
movement and can be damaged.
addDamageListener(DamageListener)
- register an object which is notified of damage to this unit
getHitPoints()
- Find out how much more damage unit can take.
getIdentity()
- Get a list of names the object goes by (may be null)
removeDamageListener(DamageListener)
- unregister an object which is notified of damage to this unit
getIdentity
public Identity getIdentity()
Get a list of names the object goes by (may be null)
getHitPoints
public double getHitPoints()
Find out how much more damage unit can take.
addDamageListener
public void addDamageListener(DamageListener listener)
register an object which is notified of damage to this unit
removeDamageListener
public void removeDamageListener(DamageListener listener)
unregister an object which is notified of damage to this unit
All Packages Class Hierarchy This Package Previous Next Index