net.sf.freecol.server.control
Class ChangeSet.StanceChange
java.lang.Object
net.sf.freecol.server.control.ChangeSet.Change
net.sf.freecol.server.control.ChangeSet.StanceChange
- Enclosing class:
- ChangeSet
private static class ChangeSet.StanceChange
- extends ChangeSet.Change
Encapsulate a stance change.
|
Method Summary |
int |
sortPriority()
The sort priority. |
org.w3c.dom.Element |
toElement(ServerPlayer serverPlayer,
org.w3c.dom.Document doc)
Specialize a StanceChange to a particular player. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
first
private Player first
stance
private Player.Stance stance
second
private Player second
ChangeSet.StanceChange
ChangeSet.StanceChange(ChangeSet.See see,
Player first,
Player.Stance stance,
Player second)
- Build a new StanceChange.
- Parameters:
see - The visibility of this change.first - The Player changing stance.stance - The Stance to change to.second - The Player wrt with to change.
sortPriority
public int sortPriority()
- The sort priority.
- Specified by:
sortPriority in class ChangeSet.Change
- Returns:
- "CHANGE_STANCE"
toElement
public org.w3c.dom.Element toElement(ServerPlayer serverPlayer,
org.w3c.dom.Document doc)
- Specialize a StanceChange to a particular player.
- Specified by:
toElement in class ChangeSet.Change
- Parameters:
serverPlayer - The ServerPlayer to update.doc - The owner Document.
- Returns:
- A "setStance" element.