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.


Method Index

 o addDamageListener(DamageListener)
register an object which is notified of damage to this unit
 o getHitPoints()
Find out how much more damage unit can take.
 o getIdentity()
Get a list of names the object goes by (may be null)
 o removeDamageListener(DamageListener)
unregister an object which is notified of damage to this unit

Method Detail

 o getIdentity
public Identity getIdentity()
          Get a list of names the object goes by (may be null)
 o getHitPoints
public double getHitPoints()
          Find out how much more damage unit can take.
 o addDamageListener
public void addDamageListener(DamageListener listener)
          register an object which is notified of damage to this unit
 o 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