org.gjt.universe
Class ResultWormholeOscillation
java.lang.Object
|
+--org.gjt.universe.ResultBase
|
+--org.gjt.universe.ResultWormholeOscillation
- All Implemented Interfaces:
- java.io.Serializable
- public final class ResultWormholeOscillation
- extends ResultBase
- See Also:
- Serialized Form
Fields inherited from class org.gjt.universe.ResultBase |
|
Method Summary |
static void |
newResult(WormholeID wID,
SystemID fixedSysID,
SystemID oldSysID,
SystemID newSysID)
Factorl method for a new wormhole oscillation result instances. |
void |
selected()
This concrete implementation of the selected
method causes a new instance of the system specific
GUI to be shown for the fixed end-point of the wormhole. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
wormholeID
private WormholeID wormholeID
playerID
private CivID playerID
fixedSysID
private SystemID fixedSysID
oldSysID
private SystemID oldSysID
newSysID
private SystemID newSysID
ResultWormholeOscillation
private ResultWormholeOscillation(WormholeID wID,
CivID pID,
SystemID fixedSysID,
SystemID oldSysID,
SystemID newSysID)
- Private contructior for a new wormhole oscillation result instance.
- Parameters:
wID
- The ID of the wormhole which oscillated.pID
- The ID of the civ to whome the result is directed.fixedSysID
- The ID of the system at the fixed end of the wormhole.oldSysID
- The ID of the system where the wormhole used to be present prior to the oscillationnewSysID
- The ID of the system to which the wormhole is now located after the oscillation.
newResult
public static void newResult(WormholeID wID,
SystemID fixedSysID,
SystemID oldSysID,
SystemID newSysID)
- Factorl method for a new wormhole oscillation result instances.
The resulting objects are inserted into the results list of all
players who control systems involved in the oscillation. If all
of the systems are unknown to all players, then no result object
is actually created.
- Parameters:
wID
- The ID of the wormhole which oscillated.fixedSysID
- The ID of the system at the fixed end of the wormhole.oldSysID
- The ID of the system where the wormhole used to be present prior to the oscillationnewSysID
- The ID of the system to which the wormhole is now located after the oscillation.
selected
public void selected()
- This concrete implementation of the selected
method causes a new instance of the system specific
GUI to be shown for the fixed end-point of the wormhole.
HACK! This should be changed to show the wormhole specific
GUI once one is created.
- Specified by:
selected
in class ResultBase
Copyright © 2001 Universe Dev Team All Rights Reserved.