org.gjt.universe
Class ResultBattle
java.lang.Object
|
+--org.gjt.universe.ResultBase
|
+--org.gjt.universe.ResultBattle
- All Implemented Interfaces:
- java.io.Serializable
- public final class ResultBattle
- extends ResultBase
An object encapsulating information about the result of a battle.
This is intended for eventual communication to a human or AI civ.
- See Also:
- Serialized Form
Fields inherited from class org.gjt.universe.ResultBase |
|
Constructor Summary |
private |
ResultBattle(Location loc,
java.util.Vector results)
This internal method is used by the public constructor
to record the location and results vector of the battle. |
Method Summary |
static void |
newResult(CivID AID,
Location loc,
java.util.Vector results)
Contructior for a new battle result instance. |
void |
selected()
This abstract method is called when the result line is double
clicked. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
loc
private Location loc
results
private java.util.Vector results
ResultBattle
private ResultBattle(Location loc,
java.util.Vector results)
- This internal method is used by the public constructor
to record the location and results vector of the battle.
- Parameters:
loc
- The location where the battle occurred.results
- The specific results of the battle.
newResult
public static void newResult(CivID AID,
Location loc,
java.util.Vector results)
- Contructior for a new battle result instance.
- Parameters:
AID
- The ID of the civ for whom the result is being generatedloc
- The location where the battle occurred.results
- A vector of specific results of the battle.
selected
public void selected()
- Description copied from class:
ResultBase
- This abstract method is called when the result line is double
clicked. This method should bring up a popup dialog with
information or something similar. Some result objects will
just ignore this method.
- Specified by:
selected
in class ResultBase
Copyright © 2001 Universe Dev Team All Rights Reserved.