|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Transportable
A single item in a carrier's transport list.
Any Locatable
which should be able to be transported
by a carrier using the TransportMission
, needs an
AI object implementing this interface.
TransportMission
Method Summary | |
---|---|
void |
abortWish(Wish w)
Aborts the given Wish . |
java.lang.String |
getId()
Returns the ID of the AIObject implementing
this interface. |
AIUnit |
getTransport()
Gets the carrier responsible for transporting this Transportable . |
Location |
getTransportDestination()
Returns the destination for this Transportable . |
Locatable |
getTransportLocatable()
Gets the Locatable which should be transported. |
int |
getTransportPriority()
Gets the priority of transporting this Transportable
to it's destination. |
Location |
getTransportSource()
Returns the source for this Transportable . |
void |
increaseTransportPriority()
Increases the transport priority of this Transportable . |
void |
setTransport(AIUnit transport)
Sets the carrier responsible for transporting this Transportable . |
Method Detail |
---|
Location getTransportSource()
Transportable
.
This is normally the location of the
locatable
.
Transportable
.Location getTransportDestination()
Transportable
.
This can either be the target Tile
of the transport
or the target for the entire Transportable
's
mission. The target for the tansport is determined by
TransportMission
in the latter case.
Transportable
.int getTransportPriority()
Transportable
to it's destination.
void increaseTransportPriority()
Transportable
.
This method gets called every turn the Transportable
have not been put on a carrier's transport list.
Locatable getTransportLocatable()
Locatable
which should be transported.
Locatable
.AIUnit getTransport()
Transportable
.
AIUnit
which has this Transportable
in it's transport list. This Transportable
has not been
scheduled for transport if this value is null
.void setTransport(AIUnit transport)
Transportable
.
This method should also add this Transportable
to the given
carrier's transport list.
transport
- The AIUnit
which has this Transportable
in it's transport list. This Transportable
has not been
scheduled for transport if this value is null
.void abortWish(Wish w)
Wish
.
w
- The Wish
to be aborted.java.lang.String getId()
AIObject
implementing
this interface.
AIObject
. This is normally
the ID of the FreeColGameObject
that object
represents.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |