|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Location | |
---|---|
net.sf.freecol.client.control | Contains the classes responsible for the control of the game. |
net.sf.freecol.client.gui.i18n | |
net.sf.freecol.client.gui.panel | Contains the panels and dialogs. |
net.sf.freecol.common.model | Contains the game model. |
net.sf.freecol.common.networking | Contains the common networking classes. |
net.sf.freecol.server.ai | The main package of the ai package tree. |
net.sf.freecol.server.ai.mission | Contains the missions an AIUnit can be assigned to. |
net.sf.freecol.server.control | Contains the classes responsible for the control of the game. |
Uses of Location in net.sf.freecol.client.control |
---|
Methods in net.sf.freecol.client.control that return Location | |
---|---|
Location |
ClientModelController.setToVacantEntryLocation(Unit unit)
Puts the specified Unit in America. |
Methods in net.sf.freecol.client.control with parameters of type Location | |
---|---|
Unit |
ClientModelController.createUnit(java.lang.String taskID,
Location location,
Player owner,
UnitType type)
Creates a new unit. |
void |
InGameController.setDestination(Unit unit,
Location destination)
Sets the destination of the given unit and send the server a message for this action. |
Uses of Location in net.sf.freecol.client.gui.i18n |
---|
Methods in net.sf.freecol.client.gui.i18n with parameters of type Location | |
---|---|
static java.lang.String |
Messages.getLocationName(Location location)
Describe getLocationName method here. |
Uses of Location in net.sf.freecol.client.gui.panel |
---|
Methods in net.sf.freecol.client.gui.panel with parameters of type Location | |
---|---|
int |
SelectDestinationDialog.compareNames(Location dest1,
Location dest2)
|
Uses of Location in net.sf.freecol.common.model |
---|
Subinterfaces of Location in net.sf.freecol.common.model | |
---|---|
interface |
WorkLocation
This interface marks the locations where a Unit can work. |
Classes in net.sf.freecol.common.model that implement Location | |
---|---|
class |
Building
Represents a building in a colony. |
class |
Colony
Represents a colony. |
class |
ColonyTile
Represents a work location on a tile. |
class |
Europe
Represents Europe in the game. |
class |
IndianSettlement
Represents an Indian settlement. |
class |
Settlement
The super class of all settlements on the map (that is colonies and indian settlements). |
class |
Tile
Represents a single tile on the Map . |
class |
Unit
Represents all pieces that can be moved on the map-board. |
Methods in net.sf.freecol.common.model that return Location | |
---|---|
Location |
Unit.getDestination()
Returns the destination of this unit. |
Location |
Unit.getEntryLocation()
Gets the Location in which this unit will be put when
returning from Europe . |
Location |
Player.getEntryLocation()
Gets the default Location where the units arriving from
Europe will be put. |
Location |
Unit.getLocation()
Gets the location of this Unit. |
Location |
TradeRouteStop.getLocation()
Get the Location value. |
Location |
TradeRoute.Stop.getLocation()
Get the Location value. |
Location |
TileItem.getLocation()
Gets the location of this TileItem . |
Location |
Locatable.getLocation()
Gets the location of this Locatable . |
Location |
Goods.getLocation()
Gets the location of this goods. |
Location |
Player.getRepairLocation(Unit unit)
Returns the closest Location in which the given ship can
get repaired. |
Location |
Unit.getVacantEntryLocation()
Gets the Location in which this unit will be put when
returning from Europe . |
Location |
ModelController.setToVacantEntryLocation(Unit unit)
Puts the specified Unit in America. |
Methods in net.sf.freecol.common.model with parameters of type Location | |
---|---|
void |
SimpleCombatModel.attack(Unit attacker,
Unit defender,
CombatModel.CombatResult result,
int plunderGold,
Location repairLocation)
Attack a unit with the given outcome. |
void |
CombatModel.attack(Unit attacker,
Unit defender,
CombatModel.CombatResult result,
int plunderGold,
Location repairLocation)
Attack a unit with the given outcome. |
void |
SimpleCombatModel.bombard(Colony colony,
Unit defender,
CombatModel.CombatResult result,
Location repairLocation)
Bombard a unit with the given outcome. |
void |
CombatModel.bombard(Colony colony,
Unit defender,
CombatModel.CombatResult result,
Location repairLocation)
Bombard a unit with the given outcome. |
boolean |
Unit.canCashInTreasureTrain(Location loc)
Checks if the treasure train can be cashed in at the given Location . |
void |
SimpleCombatModel.captureColony(Unit attacker,
Colony colony,
int plunderGold,
Location repairLocation)
Captures an enemy colony and plunders gold. |
Unit |
ModelController.createUnit(java.lang.String taskID,
Location location,
Player owner,
UnitType type)
Creates a new unit. |
int |
Unit.getTurnsToReach(Location destination)
Returns the number of turns this Unit will have to use in
order to reach the given Location . |
void |
Unit.sendToRepairLocation(Location l)
Sends this Unit to the closest Location it
can get repaired. |
void |
Unit.setDestination(Location newDestination)
Sets the destination of this unit. |
void |
Unit.setEntryLocation(Location entryLocation)
Sets the Location in which this unit will be put when
returning from Europe . |
void |
Player.setEntryLocation(Location entryLocation)
Sets the Location where the units arriving from
Europe will be put as a default. |
void |
Unit.setLocation(Location newLocation)
Sets the location of this Unit. |
void |
TradeRouteStop.setLocation(Location newLocation)
Set the Location value. |
void |
TileItem.setLocation(Location newLocation)
Sets the location for this TileItem . |
void |
Locatable.setLocation(Location newLocation)
Sets the location for this Locatable . |
void |
Goods.setLocation(Location location)
Sets the location of the goods. |
void |
Unit.setLocationNoUpdate(Location newLocation)
Sets the units location without updating any other variables |
Constructors in net.sf.freecol.common.model with parameters of type Location | |
---|---|
Goods(Game game,
Location location,
GoodsType type,
int amount)
Creates a standard Goods -instance given the place where
the goods is. |
|
GoodsContainer(Game game,
Location parent)
Creates an empty GoodsContainer . |
|
GoodsContainer(Game game,
Location parent,
org.w3c.dom.Element e)
Initiates a new GoodsContainer from an Element . |
|
GoodsContainer(Game game,
Location parent,
javax.xml.stream.XMLStreamReader in)
Initiates a new GoodsContainer from an Element . |
|
TradeRoute.Stop(Location location)
|
|
TradeRouteStop(Location location)
Creates a new TradeRouteStop instance. |
|
Unit(Game game,
Location location,
Player owner,
UnitType type,
Unit.UnitState state)
Initiate a new Unit with the specified parameters. |
|
Unit(Game game,
Location location,
Player owner,
UnitType type,
Unit.UnitState state,
EquipmentType... initialEquipment)
Initiate a new Unit with the specified parameters. |
Uses of Location in net.sf.freecol.common.networking |
---|
Constructors in net.sf.freecol.common.networking with parameters of type Location | |
---|---|
SetDestinationMessage(Unit unit,
Location destination)
Create a new SetDestinationMessage with the supplied unit
and destination. |
Uses of Location in net.sf.freecol.server.ai |
---|
Methods in net.sf.freecol.server.ai that return Location | |
---|---|
Location |
Wish.getDestination()
Gets the destination of this Wish . |
Location |
Transportable.getTransportDestination()
Returns the destination for this Transportable . |
Location |
AIUnit.getTransportDestination()
Returns the destination for this Transportable . |
Location |
AIGoods.getTransportDestination()
Returns the destination for this Transportable . |
Location |
Transportable.getTransportSource()
Returns the source for this Transportable . |
Location |
AIUnit.getTransportSource()
Returns the source for this Transportable . |
Location |
AIGoods.getTransportSource()
Returns the source for this Transportable . |
Constructors in net.sf.freecol.server.ai with parameters of type Location | |
---|---|
AIGoods(AIMain aiMain,
Location location,
GoodsType type,
int amount,
Location destination)
Creates a new AIGoods . |
|
GoodsWish(AIMain aiMain,
Location destination,
int value,
GoodsType goodsType)
Creates a new GoodsWish , using a standard request amount of 100. |
|
GoodsWish(AIMain aiMain,
Location destination,
int value,
int amountRequested,
GoodsType goodsType)
Creates a new GoodsWish . |
|
WorkerWish(AIMain aiMain,
Location destination,
int value,
UnitType unitType,
boolean expertNeeded)
Creates a new WorkerWish . |
Uses of Location in net.sf.freecol.server.ai.mission |
---|
Methods in net.sf.freecol.server.ai.mission that return Location | |
---|---|
Location |
UnitSeekAndDestroyMission.getTarget()
Returns the object we are trying to destroy. |
Methods in net.sf.freecol.server.ai.mission with parameters of type Location | |
---|---|
AIGoods |
TransportMission.buyGoodsInEurope(Connection connection,
GoodsType type,
int amount,
Location destination)
Buys the given cargo. |
int |
TransportMission.getAvailableSpace(UnitType unitType,
Location source,
Location destination)
Returns the available space for the given type of Unit at
the given Location . |
void |
UnitSeekAndDestroyMission.setTarget(Location target)
Sets the object we are trying to destroy. |
Constructors in net.sf.freecol.server.ai.mission with parameters of type Location | |
---|---|
UnitSeekAndDestroyMission(AIMain aiMain,
AIUnit aiUnit,
Location target)
Creates a mission for the given AIUnit . |
Uses of Location in net.sf.freecol.server.control |
---|
Methods in net.sf.freecol.server.control that return Location | |
---|---|
Location |
ServerModelController.setToVacantEntryLocation(Unit unit)
Puts the specified Unit in America. |
Methods in net.sf.freecol.server.control with parameters of type Location | |
---|---|
Unit |
ServerModelController.createUnit(java.lang.String taskID,
Location location,
Player owner,
UnitType type)
Creates a new unit. |
Unit |
ServerModelController.createUnit(java.lang.String taskID,
Location location,
Player owner,
UnitType type,
boolean secure,
Connection connection)
Creates a new unit. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |