All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.loki3.cyber.pawn.DamageListener


public interface DamageListener
Interface which is notified when objects are damaged or destroyed


Method Index

 o unitDamaged(Unit, double)
Called when something has been damaged.
 o unitDestroyed(Unit)
Called when something has been destroyed.

Method Detail

 o unitDamaged
public void unitDamaged(Unit unit,
                        double amount)
          Called when something has been damaged. Use unit.getDamage() to find out total damage to unit.
Parameters:
unit - object which was damaged
amount - how much new damage has been done
 o unitDestroyed
public void unitDestroyed(Unit unit)
          Called when something has been destroyed.
Parameters:
unit - object which was destroyed.

All Packages  Class Hierarchy  This Package  Previous  Next  Index