All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.loki3.cyber.pawn.ScannedUnit

java.lang.Object
    |
    +----com.loki3.cyber.pawn.ScannedUnit

public class ScannedUnit
extends java.lang.Object
Basic information about a unit that has been scanned.


Constructor Index

 o ScannedUnit()
 

Method Index

 o getAngle()
Get the angle from us to the unit.
 o getDistance()
Get the distance from us to the unit.
 o getIdentity()
Get information about the identity of this unit (may be null)
 o getIsAlive()
Find out if scanned unit has been destroyed
 o getWhere()
Get the location of this unit relative to ourselves.

Constructor Detail

 o ScannedUnit
public ScannedUnit()

Method Detail

 o getWhere
public Vector getWhere()
          Get the location of this unit relative to ourselves.
 o getDistance
public double getDistance()
          Get the distance from us to the unit.
 o getAngle
public double getAngle()
          Get the angle from us to the unit.
Returns:
angle - relative to orientation, counterclockwise in (-pi,pi]
 o getIsAlive
public boolean getIsAlive()
          Find out if scanned unit has been destroyed
 o getIdentity
public Identity getIdentity()
          Get information about the identity of this unit (may be null)

All Packages  Class Hierarchy  This Package  Previous  Next  Index