|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectj4cevo.Information
Information is used to save data. It uses standard java serialization. It is recommended to provide specialized serialization methods (use Externalizable interface) to save space in the save game. During reconstruction of the object the player is accessible via Player.getPlayer(). j4cEvo managed objects, that need to maintain their identity use this to implement the readResolve pattern.
Player.getPlayer(),
Brain.Information,
Serialized Form| Constructor Summary | |
Information()
|
|
| Method Summary | |
abstract void |
receivedBy(Player player)
Hook for subclasses. |
void |
sendTo(Player player)
Sending information to a player allows the player to receive this information when a game is restored. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Information()
| Method Detail |
public abstract void receivedBy(Player player)
player - the playerpublic final void sendTo(Player player)
player - the player
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||