All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.loki3.cyber.pawn.EnergyListener


public interface EnergyListener
Interface which is notified of energy usage. Typically you ask to be notified when a certain level has been reached.


Method Index

 o energyDrained(Unit)
Called when a unit's energy has been completely drained.
 o energyLow(Unit, double)
Called when a unit's energy has reached the requested level.

Method Detail

 o energyLow
public void energyLow(Unit unit,
                      double remaining)
          Called when a unit's energy has reached the requested level.
Parameters:
unit - the affected object
remaining - total remaining energy
 o energyDrained
public void energyDrained(Unit unit)
          Called when a unit's energy has been completely drained.
Parameters:
unit - the affected object

All Packages  Class Hierarchy  This Package  Previous  Next  Index