|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.defcon.communication.worldview.AbstractMapSource
cz.cuni.amis.pogamut.defcon.communication.worldview.NativeMapSource
public class NativeMapSource
Uses ingame representation of to provide info about it.
| Field Summary |
|---|
| Fields inherited from class cz.cuni.amis.pogamut.defcon.communication.worldview.AbstractMapSource |
|---|
STEP |
| Constructor Summary | |
|---|---|
NativeMapSource(GameInfo gameInfo)
|
|
NativeMapSource(GameInfo gameInfo,
Logger log)
|
|
| Method Summary | |
|---|---|
boolean |
hasEnemyTerritoryFlag(double x,
double y,
int enemyId)
Returns true if the given location is a valid territory for the given teamId. |
boolean |
hasEnemyTerritoryFlag(double x,
double y,
int enemyId,
boolean seaArea)
|
boolean |
hasEnemyTerritoryFlag(cz.cuni.amis.pogamut.base3d.worldview.object.Location location,
int enemyId)
Returns true if the given location is a valid territory for the given teamId. |
boolean |
hasEnemyTerritoryFlag(cz.cuni.amis.pogamut.base3d.worldview.object.Location location,
int enemyId,
boolean seaArea)
Returns true if the given location is a valid territory for the given teamId. |
boolean |
hasFlag(double x,
double y,
BasicFlag flag)
Returns true if the flag is present on the given location. |
boolean |
hasFlag(cz.cuni.amis.pogamut.base3d.worldview.object.Location location,
BasicFlag flag)
Returns true if the flag is present on the given location. |
| Methods inherited from class cz.cuni.amis.pogamut.defcon.communication.worldview.AbstractMapSource |
|---|
traceFromTo, traceFromTo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NativeMapSource(GameInfo gameInfo)
public NativeMapSource(GameInfo gameInfo,
Logger log)
| Method Detail |
|---|
public boolean hasFlag(cz.cuni.amis.pogamut.base3d.worldview.object.Location location,
BasicFlag flag)
IFlagChecker
public boolean hasFlag(double x,
double y,
BasicFlag flag)
IFlagChecker
public boolean hasEnemyTerritoryFlag(cz.cuni.amis.pogamut.base3d.worldview.object.Location location,
int enemyId)
IFlagChecker
public boolean hasEnemyTerritoryFlag(double x,
double y,
int enemyId)
IFlagChecker
public boolean hasEnemyTerritoryFlag(cz.cuni.amis.pogamut.base3d.worldview.object.Location location,
int enemyId,
boolean seaArea)
IFlagChecker
seaArea - if true then checks, whether [x, y] is a sea territory
public boolean hasEnemyTerritoryFlag(double x,
double y,
int enemyId,
boolean seaArea)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||