|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Map.Position | |
---|---|
net.sf.freecol.client.gui | Contains the GUI classes. |
net.sf.freecol.common.model | Contains the game model. |
net.sf.freecol.server.generator | Contains the map generator. |
net.sf.freecol.server.model | Contains model classes with server specific information. |
Uses of Map.Position in net.sf.freecol.client.gui |
---|
Methods in net.sf.freecol.client.gui that return Map.Position | |
---|---|
Map.Position |
GUI.convertToMapCoordinates(int x,
int y)
Converts the given screen coordinates to Map coordinates. |
Map.Position |
GUI.getFocus()
Gets the focus of the map. |
Map.Position |
GUI.getSelectedTile()
Gets the selected tile. |
Methods in net.sf.freecol.client.gui with parameters of type Map.Position | |
---|---|
boolean |
GUI.onScreen(Map.Position position)
Checks if the Tile/Units at the given coordinates are displayed on the screen (or, if the map is already displayed and the focus has been changed, whether they will be displayed on the screen the next time it'll be redrawn). |
void |
Canvas.refreshTile(Map.Position p)
Refreshes the screen at the specified Tile. |
void |
GUI.setFocus(Map.Position focus)
Sets the focus of the map. |
void |
GUI.setFocusImmediately(Map.Position focus)
Sets the focus of the map and repaints the screen immediately. |
void |
GUI.setSelectedTile(Map.Position selectedTile)
Selects the tile at the specified position, without clearing the orders of the first unit contained. |
void |
GUI.setSelectedTile(Map.Position selectedTile,
boolean clearGoToOrders)
Selects the tile at the specified position. |
void |
GUI.showColonyPanel(Map.Position selectedTile)
|
void |
Canvas.showTilePopup(Map.Position pos,
int x,
int y)
Shows a tile popup. |
Uses of Map.Position in net.sf.freecol.common.model |
---|
Methods in net.sf.freecol.common.model that return Map.Position | |
---|---|
static Map.Position |
Map.getAdjacent(Map.Position position,
Map.Direction direction)
Gets the position adjacent to a given position, in a given direction. |
Map.Position |
Tile.getPosition()
Gets the Position of this Tile . |
Map.Position |
Map.getRandomLandPosition(java.util.Random random)
Select a random land position on the map. |
Map.Position |
Map.WholeMapIterator.nextPosition()
Obtain the next position to iterate over. |
Map.Position |
Map.CircleIterator.nextPosition()
Obtains the next position. |
Methods in net.sf.freecol.common.model that return types with arguments of type Map.Position | |
---|---|
java.util.Iterator<Map.Position> |
Map.getAdjacentIterator(Map.Position centerPosition)
Get an adjacent iterator. |
java.util.Iterator<Map.Position> |
Map.getBorderAdjacentIterator(Map.Position centerPosition)
Get a border adjacent iterator. |
java.util.Iterator<Map.Position> |
Map.getFloodFillIterator(Map.Position centerPosition)
Get a flood fill iterator. |
Methods in net.sf.freecol.common.model with parameters of type Map.Position | |
---|---|
static Map.Position |
Map.getAdjacent(Map.Position position,
Map.Direction direction)
Gets the position adjacent to a given position, in a given direction. |
java.util.Iterator<Map.Position> |
Map.getAdjacentIterator(Map.Position centerPosition)
Get an adjacent iterator. |
Tile |
Map.getAdjacentTile(Map.Position position,
Map.Direction direction)
Gets the position adjacent Tile to a given Tile, in a given direction. |
java.util.Iterator<Map.Position> |
Map.getBorderAdjacentIterator(Map.Position centerPosition)
Get a border adjacent iterator. |
Map.CircleIterator |
Map.getCircleIterator(Map.Position center,
boolean isFilled,
int radius)
Get a circle iterator. |
int |
Map.getDistance(Map.Position position1,
Map.Position position2)
Gets the distance in tiles between two map positions. |
java.util.Iterator<Map.Position> |
Map.getFloodFillIterator(Map.Position centerPosition)
Get a flood fill iterator. |
Tile |
Map.getTile(Map.Position p)
Returns the Tile at a requested position. |
boolean |
Map.isValid(Map.Position position)
Checks whether a position is valid (within the map limits). |
static boolean |
Map.isValid(Map.Position position,
int width,
int height)
Checks whether a position is valid. |
Constructors in net.sf.freecol.common.model with parameters of type Map.Position | |
---|---|
Map.CircleIterator(Map.Position center,
boolean isFilled,
int radius)
The constructor to use. |
Uses of Map.Position in net.sf.freecol.server.generator |
---|
Methods in net.sf.freecol.server.generator that return Map.Position | |
---|---|
Map.Position |
RiverSection.getPosition()
Returns the position |
Methods in net.sf.freecol.server.generator with parameters of type Map.Position | |
---|---|
void |
River.add(Map.Position position,
Map.Direction direction)
Adds a new section to this river. |
boolean |
River.contains(Map.Position p)
Returns true if this river already contains the given position. |
boolean |
River.flowFromSource(Map.Position position)
Creates a river flowing from the given position if possible. |
void |
River.grow(RiverSection lastSection,
Map.Position position)
Increases the size of this river. |
boolean |
River.isNextToSelf(Map.Position p)
Returns true if the given position is next to this river. |
boolean |
River.isNextToWater(Map.Position p)
Returns true if the given position is next to a river, lake or sea. |
Constructors in net.sf.freecol.server.generator with parameters of type Map.Position | |
---|---|
RiverSection(Map.Position position,
Map.Direction direction)
Constructor used to automatically generate rivers. |
Constructor parameters in net.sf.freecol.server.generator with type arguments of type Map.Position | |
---|---|
River(Map map,
java.util.Map<Map.Position,River> riverMap,
ServerRegion region,
java.util.Random random)
Constructor. |
Uses of Map.Position in net.sf.freecol.server.model |
---|
Methods in net.sf.freecol.server.model that return Map.Position | |
---|---|
Map.Position |
ServerRegion.getCenter()
Return the center of the Region's bounding box. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |