net.sourceforge.worldsaver.rp
Interface Saveable
- All Known Implementing Classes:
- Armor, RpBase, Action, Campaign, Area, Adventure, Person, Merchant, ActionParticle, Building, Civilist, Weapon
- public interface Saveable
This interface defines some methods that are required for classes
that want to be saved.
getSaveableString
public java.lang.String getSaveableString()
throws java.io.IOException
- Must return a ready-to-save String.
- Returns:
- the String
- Throws:
java.io.IOException
- if the objects are not valid
getReferencesRight
public void getReferencesRight(java.util.HashMap pool,
IDGenerator gen)
- Must set the references right by getting the real objects out
of the pool. The Pool contains keys as unique Long values.
- Parameters:
pool
- the objects that could be referencedgen
- the ID-Generator for this object