sampleai
Class Brain.InfoExt

java.lang.Object
  extended byj4cevo.Information
      extended bysampleai.Brain.InfoExt
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable
Enclosing class:
Brain

public static class Brain.InfoExt
extends Information
implements java.io.Externalizable

Demonstrates saving of Information as Externalizable to save space. The information itself is rather useless at the moment.

See Also:
Serialized Form

Constructor Summary
Brain.InfoExt()
           
 
Method Summary
 void readExternal(java.io.ObjectInput in)
           
 void receivedBy(Player player)
          Hook for subclasses.
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class j4cevo.Information
sendTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Brain.InfoExt

public Brain.InfoExt()
Method Detail

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