All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.loki3.cyber.pawn.UnitClass

java.lang.Object
    |
    +----com.loki3.pa.Item
            |
            +----com.loki3.cyber.pawn.UnitClass

public class UnitClass
extends com.loki3.pa.Item
implements Unit
Units are objects which have a physical representation, movement and can be damaged.


Constructor Index

 o UnitClass()
 

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 init(Particle, Geometry, double)
 
 o removeDamageListener(DamageListener)
unregister an object which is notified of damage to this unit

Constructor Detail

 o UnitClass
public UnitClass()

Method Detail

 o init
public boolean init(com.loki3.pa.Particle particle,
                    com.loki3.pa.Geometry geometry,
                    double hitpoints)
 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