sampleai
Class Unit.Information
java.lang.Object
j4cevo.Information
sampleai.Unit.Information
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable
- Direct Known Subclasses:
- Unit.UnitCommand
- Enclosing class:
- Unit
- public static class Unit.Information
- extends Information
- implements java.io.Externalizable
Demonstrates saving of Information for a j4cEvo managed Object (a unit)
The information itself is rather useless at the moment.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Unit.Information
public Unit.Information()
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal in interface java.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
receivedBy
public void receivedBy(Player player)
- Description copied from class:
Information
- Hook for subclasses. Is called by j4cEvo for every sendTo and will be
replayed for a restored game. (see cevo ClientEx call) . This call is
delayed until the j4cEvo managed objects are available.
- Specified by:
receivedBy in class Information
- Parameters:
player - the player
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal in interface java.io.Externalizable
- Throws:
java.io.IOException
generated: 20050107