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.
ScannedUnit()
-
getAngle()
- Get the angle from us to the unit.
getDistance()
- Get the distance from us to the unit.
getIdentity()
- Get information about the identity of this unit (may be null)
getIsAlive()
- Find out if scanned unit has been destroyed
getWhere()
- Get the location of this unit relative to ourselves.
ScannedUnit
public ScannedUnit()
getWhere
public Vector getWhere()
Get the location of this unit relative to ourselves.
getDistance
public double getDistance()
Get the distance from us to the unit.
getAngle
public double getAngle()
Get the angle from us to the unit.
- Returns:
- angle - relative to orientation, counterclockwise in (-pi,pi]
getIsAlive
public boolean getIsAlive()
Find out if scanned unit has been destroyed
getIdentity
public Identity getIdentity()
Get information about the identity of this unit (may be null)
All Packages Class Hierarchy This Package Previous Next Index