|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.springrts.ai.oo.Map
public class Map
Method Summary | |
---|---|
int |
compareTo(Map other)
|
boolean |
equals(Object otherObject)
|
AIFloat3 |
findClosestBuildSite(UnitDef c_unitDefId,
AIFloat3 pos,
float searchRadius,
int minDist,
int facing)
Returns the closest position from a given position that a building can be built at. |
int |
getChecksum()
|
float |
getCurWind()
|
float |
getElevationAt(float x,
float z)
Gets the elevation of the map at position (x, z) |
float |
getExtractorRadius(Resource c_resourceId)
Returns extraction radius for resource extractors |
float |
getGravity()
|
int |
getHeight()
Returns the maps height in full resolution |
List<Float> |
getHeightMap()
Returns the height for the center of the squares. |
List<Short> |
getJammerMap()
the radar jammer map A square with value 0 means you do not have radar jamming coverage. |
List<Line> |
getLines(boolean includeAllies)
Returns all lines drawn with this AIs team color, and additionally the ones drawn with allied team colors, if includeAllies is true. |
List<Short> |
getLosMap()
|
float |
getMaxHeight()
|
float |
getMaxResource(Resource c_resourceId)
Returns what value 255 in the resource map is worth |
float |
getMaxWind()
|
float |
getMinHeight()
|
float |
getMinWind()
|
AIFloat3 |
getMousePos()
|
String |
getName()
|
List<Point> |
getPoints(boolean includeAllies)
Returns all points drawn with this AIs team color, and additionally the ones drawn with allied team colors, if includeAllies is true. |
List<Short> |
getRadarMap()
the radar map A square with value 0 means you do not have radar coverage on it. |
List<Byte> |
getResourceMapRaw(Resource c_resourceId)
resource maps This map shows the resource density on the map. |
List<AIFloat3> |
getResourceMapSpotsPositions(Resource c_resourceId)
Returns positions indicating where to place resource extractors on the map. |
List<Float> |
getSlopeMap()
the slope map The values are 1 minus the y-component of the (average) facenormal of the square. |
AIFloat3 |
getStartPos()
|
float |
getTidalStrength()
|
int |
getWidth()
Returns the maps width in full resolution |
int |
hashCode()
|
boolean |
isPosInCamera(AIFloat3 pos,
float radius)
|
boolean |
isPossibleToBuildAt(UnitDef c_unitDefId,
AIFloat3 pos,
int facing)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public int compareTo(Map other)
compareTo
in interface Comparable<Map>
public boolean equals(Object otherObject)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public int getChecksum()
public AIFloat3 getStartPos()
public AIFloat3 getMousePos()
public boolean isPosInCamera(AIFloat3 pos, float radius)
public int getWidth()
public int getHeight()
public List<Float> getHeightMap()
public float getMinHeight()
public float getMaxHeight()
public List<Float> getSlopeMap()
public List<Short> getLosMap()
public List<Short> getRadarMap()
public List<Short> getJammerMap()
public List<Byte> getResourceMapRaw(Resource c_resourceId)
public List<AIFloat3> getResourceMapSpotsPositions(Resource c_resourceId)
public String getName()
public float getElevationAt(float x, float z)
public float getMaxResource(Resource c_resourceId)
public float getExtractorRadius(Resource c_resourceId)
public float getMinWind()
public float getMaxWind()
public float getCurWind()
public float getTidalStrength()
public float getGravity()
public boolean isPossibleToBuildAt(UnitDef c_unitDefId, AIFloat3 pos, int facing)
public AIFloat3 findClosestBuildSite(UnitDef c_unitDefId, AIFloat3 pos, float searchRadius, int minDist, int facing)
minDist
- the distance in squares that the building must keep to other buildings,
to make it easier to keep free paths through a basepublic List<Point> getPoints(boolean includeAllies)
includeAllies
is true.
public List<Line> getLines(boolean includeAllies)
includeAllies
is true.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |