|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Map.Direction | |
---|---|
net.sf.freecol.client.control | Contains the classes responsible for the control of the game. |
net.sf.freecol.client.gui | Contains the GUI classes. |
net.sf.freecol.client.gui.animation | |
net.sf.freecol.common.model | Contains the game model. |
net.sf.freecol.common.networking | Contains the common networking classes. |
net.sf.freecol.server.ai.mission | Contains the missions an AIUnit can be assigned to. |
net.sf.freecol.server.generator | Contains the map generator. |
Uses of Map.Direction in net.sf.freecol.client.control |
---|
Methods in net.sf.freecol.client.control with parameters of type Map.Direction | |
---|---|
void |
InGameController.move(Unit unit,
Map.Direction direction)
Moves the specified unit in a specified direction. |
void |
InGameController.moveActiveUnit(Map.Direction direction)
Moves the active unit in a specified direction. |
Uses of Map.Direction in net.sf.freecol.client.gui |
---|
Methods in net.sf.freecol.client.gui with parameters of type Map.Direction | |
---|---|
java.awt.Image |
ImageLibrary.getBorderImage(TileType type,
Map.Direction direction,
int x,
int y)
Returns the border terrain-image for the given type. |
java.awt.Image |
ImageLibrary.getCoastImage(TileType type,
Map.Direction direction,
int x,
int y)
Returns the coast terrain-image for the given type. |
java.awt.Image |
ImageLibrary.getRiverMouthImage(Map.Direction direction,
int magnitude,
int x,
int y)
Returns the river mouth terrain-image for the direction and magnitude. |
void |
GUI.moveTileCursor(Map.Direction direction)
|
Uses of Map.Direction in net.sf.freecol.client.gui.animation |
---|
Constructors in net.sf.freecol.client.gui.animation with parameters of type Map.Direction | |
---|---|
UnitImageAnimation(Canvas canvas,
Unit unit,
SimpleZippedAnimation animation,
Map.Direction direction)
Constructor |
Uses of Map.Direction in net.sf.freecol.common.model |
---|
Fields in net.sf.freecol.common.model declared as Map.Direction | |
---|---|
static Map.Direction[] |
Map.Direction.longSides
|
Methods in net.sf.freecol.common.model that return Map.Direction | |
---|---|
Map.Direction |
PathNode.getDirection()
Returns the direction to move in order to get closer towards the goal. |
Map.Direction |
Map.getDirection(Tile t1,
Tile t2)
Returns the direction a unit needs to move in order to get from t1 to t2 |
Map.Direction |
Map.Direction.getNextDirection()
|
Map.Direction |
Map.Direction.getPreviousDirection()
|
static Map.Direction |
Map.Direction.getRandomDirection(java.util.Random random)
Returns a random Direction. |
static Map.Direction[] |
Map.Direction.getRandomDirectionArray(java.util.Random random)
Creates an array of the eight directions in a random order. |
Map.Direction |
Map.Direction.getReverseDirection()
Returns the reverse direction of the given direction. |
static Map.Direction |
Map.Direction.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Map.Direction[] |
Map.Direction.values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods in net.sf.freecol.common.model with parameters of type Map.Direction | |
---|---|
static Map.Position |
Map.getAdjacent(Map.Position position,
Map.Direction direction)
Gets the position adjacent to a given position, in a given direction. |
Tile |
Map.getAdjacentTile(Map.Position position,
Map.Direction direction)
Gets the position adjacent Tile to a given Tile, in a given direction. |
static int[] |
TileImprovement.getBase(Map.Direction[] directions,
int baseNumber)
Returns an int[NUMBER_OF_DIRECTIONS] array based on the baseNumber and the 'active' directions given. |
Unit.MoveType |
Unit.getMoveType(Map.Direction direction)
Gets the type of a move made in a specified direction. |
Tile |
Tile.getNeighbourOrNull(Map.Direction d)
Describe getNeighbourOrNull method here. |
Tile |
Map.getNeighbourOrNull(Map.Direction direction,
int x,
int y)
Returns the neighbouring Tile of the given Tile in the given direction. |
Tile |
Map.getNeighbourOrNull(Map.Direction direction,
Tile t)
Returns the neighbouring Tile of the given Tile in the given direction. |
Unit.MoveType |
Unit.getSimpleMoveType(Map.Direction direction)
Gets the type of a move made in a specified direction, without checking if the unit has moves left or logging errors. |
int[] |
TileImprovement.getStyleBreakdown(Map.Direction[] directions,
int baseNumber)
Breaks the Style of this Improvement into 8 directions - used for Rivers (at the moment) |
void |
Unit.move(Map.Direction direction)
Moves this unit in the specified direction. |
Constructors in net.sf.freecol.common.model with parameters of type Map.Direction | |
---|---|
PathNode(Tile tile,
int cost,
int f,
Map.Direction direction,
int movesLeft,
int turns)
Creates a new PathNode . |
Uses of Map.Direction in net.sf.freecol.common.networking |
---|
Constructors in net.sf.freecol.common.networking with parameters of type Map.Direction | |
---|---|
DiplomacyMessage(Unit unit,
Map.Direction direction,
DiplomaticTrade agreement)
Create a new DiplomacyMessage with the
supplied unit, direction and agreement. |
|
SpySettlementMessage(Unit unit,
Map.Direction direction)
Create a new SpySettlementMessage with the
supplied unit and direction. |
Uses of Map.Direction in net.sf.freecol.server.ai.mission |
---|
Methods in net.sf.freecol.server.ai.mission with parameters of type Map.Direction | |
---|---|
void |
Mission.attack(Connection connection,
Unit unit,
Map.Direction direction)
|
Uses of Map.Direction in net.sf.freecol.server.generator |
---|
Fields in net.sf.freecol.server.generator declared as Map.Direction | |
---|---|
Map.Direction |
RiverSection.direction
Direction the river is flowing toward, at the current section |
Methods in net.sf.freecol.server.generator with parameters of type Map.Direction | |
---|---|
void |
River.add(Map.Position position,
Map.Direction direction)
Adds a new section to this river. |
int |
RiverSection.getBranch(Map.Direction direction)
Gets the size of a branch |
void |
RiverSection.growBranch(Map.Direction direction,
int increment)
Increases the size a branch |
void |
RiverSection.removeBranch(Map.Direction direction)
Removes a branch |
void |
RiverSection.setBranch(Map.Direction direction,
int size)
Sets the size of a branch |
Constructors in net.sf.freecol.server.generator with parameters of type Map.Direction | |
---|---|
RiverSection(Map.Position position,
Map.Direction direction)
Constructor used to automatically generate rivers. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |