|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.common.model.FreeColObject
net.sf.freecol.server.ai.AIObject
net.sf.freecol.server.ai.ValuedAIObject
public class ValuedAIObject
| Field Summary | |
|---|---|
private int |
value
Describe value here. |
| Fields inherited from class net.sf.freecol.server.ai.AIObject |
|---|
uninitialized |
| Fields inherited from class net.sf.freecol.common.model.FreeColObject |
|---|
ARRAY_SIZE, ID_ATTRIBUTE, ID_ATTRIBUTE_TAG, PARTIAL_ATTRIBUTE |
| Constructor Summary | |
|---|---|
ValuedAIObject(AIMain aiMain)
|
|
ValuedAIObject(AIMain aiMain,
java.lang.String id)
|
|
| Method Summary | |
|---|---|
int |
compareTo(ValuedAIObject other)
|
int |
getValue()
Get the Value value. |
void |
setValue(int newValue)
Set the Value value. |
protected void |
toXMLImpl(javax.xml.stream.XMLStreamWriter out)
This method writes an XML-representation of this object to the given stream. |
| Methods inherited from class net.sf.freecol.server.ai.AIObject |
|---|
dispose, getAIMain, getAIRandom, getGame, getXMLElementTagName, isUninitialized, readFromXML |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int value
| Constructor Detail |
|---|
public ValuedAIObject(AIMain aiMain)
public ValuedAIObject(AIMain aiMain,
java.lang.String id)
| Method Detail |
|---|
public final int getValue()
Value value.
int valuepublic final void setValue(int newValue)
Value value.
newValue - The new Value value.public final int compareTo(ValuedAIObject other)
compareTo in interface java.lang.Comparable<ValuedAIObject>
protected void toXMLImpl(javax.xml.stream.XMLStreamWriter out)
throws javax.xml.stream.XMLStreamException
FreeColObject
toXMLImpl in class FreeColObjectout - The target stream.
javax.xml.stream.XMLStreamException - if there are any problems writing
to the stream.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||