|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gjt.universe.OrderModel | +--org.gjt.universe.scheme001.FleetOrderModel_001
FleetOrderModel_001.java Created: Feb 23 1999 Updated: Apr 28 2001
Field Summary | |
private static java.lang.String |
COLONIZE_PLANET
|
private FleetID |
fleet
|
private java.util.Vector |
potentialOrderVector
|
private static java.lang.String |
TRAVEL_SYSTEM
|
private static java.lang.String |
TRAVEL_WORMHOLE
|
private CivID |
viewer
|
Fields inherited from class org.gjt.universe.OrderModel |
|
Constructor Summary | |
FleetOrderModel_001(CivID AID,
FleetID FID)
|
Method Summary | |
void |
addOrder(int item)
This concrete implementation of an inherited abstract method is called when the user has selected a potential order that he or she wishes to be made into an actual order. |
void |
deleteOrder(int item)
This concrete implementation of an inherited abstract method deletes the currently assigned order at the given position in the queue. |
java.util.Vector |
getOrderVector()
This concrete implementation of an inherited abstract method returns the vector of strings representing potential orders that may be given to the assigned fleet. |
java.util.Vector |
getQueueVector()
This concrete implementation of an inherited abstract method returns a vector of strings representing the queue of actual orders currently assigned to the fleet. |
void |
handleNotification(Notification aNotification)
This method is called automatically whenever our fleet posts a notification (because we registered for this notification in our setFleet method). |
void |
setFleet(FleetID FID)
This method sets the fleet whose orders are being represented and manipulated via this object. |
void |
turnProcessed()
|
private void |
updatePotentialOrderVector()
This internal method is called whenever the assigned fleet or its composition is changed. |
Methods inherited from class org.gjt.universe.OrderModel |
addOrderModelChangeListener, cleanup, fireOrderVectorChanged, fireQueueVectorChanged, popup, removeOrderModelChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static java.lang.String TRAVEL_SYSTEM
private static java.lang.String TRAVEL_WORMHOLE
private static java.lang.String COLONIZE_PLANET
private FleetID fleet
private java.util.Vector potentialOrderVector
private CivID viewer
Constructor Detail |
public FleetOrderModel_001(CivID AID, FleetID FID)
Method Detail |
private void updatePotentialOrderVector()
public java.util.Vector getOrderVector()
getOrderVector
in class OrderModel
public java.util.Vector getQueueVector()
getQueueVector
in class OrderModel
public void addOrder(int item)
addOrder
in class OrderModel
item
- The position in the vector of the potential order to be added as an actual order.public void deleteOrder(int item)
deleteOrder
in class OrderModel
item
- The position in the queue of the item to be deleted.public void setFleet(FleetID FID)
public void turnProcessed()
turnProcessed
in interface TurnProcessedListener
public void handleNotification(Notification aNotification)
handleNotification
in interface NotificationObserver
aNotification
- The notification posted by our fleet.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |