|
||||||||||
| 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.modules.bitmap.BitmapMapSource
public class BitmapMapSource
Map source using bitmaps from the Bitmaps/ directory to provide access to map features.
| Field Summary |
|---|
| Fields inherited from class cz.cuni.amis.pogamut.defcon.communication.worldview.AbstractMapSource |
|---|
STEP |
| Constructor Summary | |
|---|---|
BitmapMapSource(BufferedImage[] territories,
int[] ownTerritories,
SortedMap<Integer,int[]> enemyIdsAndTerritories,
BufferedImage sailable)
|
|
BitmapMapSource(BufferedImage[] territories,
int[] ownTerritories,
SortedMap<Integer,int[]> enemyIdsAndTerritories,
BufferedImage sailable,
Logger log)
|
|
| Method Summary | |
|---|---|
SortedMap<Integer,BufferedImage> |
getOwnTerritories()
|
BufferedImage |
getTerritorry(int index)
|
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(Location location,
int enemyId)
Returns true if the given location is a valid territory for the given teamId. |
boolean |
hasEnemyTerritoryFlag(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(Location location,
BasicFlag flag)
Returns true if the flag is present on the given location. |
void |
setTerritorry(int index,
BufferedImage bitmap)
|
| 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 BitmapMapSource(BufferedImage[] territories,
int[] ownTerritories,
SortedMap<Integer,int[]> enemyIdsAndTerritories,
BufferedImage sailable)
public BitmapMapSource(BufferedImage[] territories,
int[] ownTerritories,
SortedMap<Integer,int[]> enemyIdsAndTerritories,
BufferedImage sailable,
Logger log)
| Method Detail |
|---|
public void setTerritorry(int index,
BufferedImage bitmap)
public BufferedImage getTerritorry(int index)
public SortedMap<Integer,BufferedImage> getOwnTerritories()
public boolean hasFlag(double x,
double y,
BasicFlag flag)
IFlagChecker
public boolean hasFlag(Location location,
BasicFlag flag)
IFlagChecker
public boolean hasEnemyTerritoryFlag(Location location,
int enemyId)
IFlagChecker
public boolean hasEnemyTerritoryFlag(double x,
double y,
int enemyId)
IFlagChecker
public boolean hasEnemyTerritoryFlag(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 | |||||||||