All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.loki3.cyber.pawn.ScannerPerfect

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

public class ScannerPerfect
extends Scanner
A perfect scanner reports all visible units within the range of the scanner. Call scan() to get a list of the scanned units.
	scanner.scan();
	ScannedList pawns = scanner.getPawns();
	for (int i=0; i<pawns.getCount(); i++)
	{
		ScannedUnit unit = pawns.getUnit(i);
		...check how close is it...
	}
 


Constructor Index

 o ScannerPerfect()
 

Method Index

 o getMaker()
object which can publicly create us
 o getMaxSight()
Get the maximum distance scanner can see.
 o getObstacles()
Get the list of all obstacles which were found in the last call to scan().
 o getPawns()
Get the list of all pawns which were found in the last call to scan().
 o scan()
Scans for surrounding units, then use getPawns & getObstacles to find the results

Constructor Detail

 o ScannerPerfect
public ScannerPerfect()

Method Detail

 o getMaker
public static java.lang.Object getMaker()
          object which can publicly create us
 o scan
public void scan()
          Scans for surrounding units, then use getPawns & getObstacles to find the results
 o getPawns
public ScannedList getPawns()
          Get the list of all pawns which were found in the last call to scan().
 o getObstacles
public ScannedList getObstacles()
          Get the list of all obstacles which were found in the last call to scan().
 o getMaxSight
public double getMaxSight()
          Get the maximum distance scanner can see.
Returns:
0 means scanner can see everything

All Packages  Class Hierarchy  This Package  Previous  Next  Index