net.sourceforge.worldsaver.rp
Class Civilist
java.lang.Object
|
+--net.sourceforge.worldsaver.rp.RpBase
|
+--net.sourceforge.worldsaver.rp.Person
|
+--net.sourceforge.worldsaver.rp.Civilist
- All Implemented Interfaces:
- MiscUtils, Saveable
- public class Civilist
- extends Person
- implements Saveable
Yes, this class represents a normal stupid civilist.
- Version:
- Feb 16 2001
- Author:
- Andreas Schmitz
Constructor Summary |
Civilist(java.util.HashMap map)
Standard constructor. |
Civilist(RpBase father,
java.lang.String name)
Standard constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Civilist
public Civilist(RpBase father,
java.lang.String name)
- Standard constructor.
- See Also:
RpBase.RpBase(net.sourceforge.worldsaver.rp.RpBase, java.lang.String)
,
Person.Person(net.sourceforge.worldsaver.rp.RpBase, java.lang.String)
Civilist
public Civilist(java.util.HashMap map)
- Standard constructor.
- See Also:
RpBase.RpBase(net.sourceforge.worldsaver.rp.RpBase, java.lang.String)
,
Person.Person(net.sourceforge.worldsaver.rp.RpBase, java.lang.String)
getReferencesRight
public void getReferencesRight(java.util.HashMap pool,
IDGenerator gen)
- Standard.
- Specified by:
getReferencesRight
in interface Saveable
- Overrides:
getReferencesRight
in class Person
- See Also:
Person.getReferencesRight(java.util.HashMap, net.sourceforge.worldsaver.util.IDGenerator)
,
RpBase.getReferencesRight(java.util.HashMap, net.sourceforge.worldsaver.util.IDGenerator)
getSaveableString
public java.lang.String getSaveableString()
throws java.io.IOException
- Returns a ready-to-go saveable String.
- Specified by:
getSaveableString
in interface Saveable
- Overrides:
getSaveableString
in class Person
- Returns:
- the String
copy
public RpBase copy(boolean childs,
boolean full)
- Description copied from class:
RpBase
- Returns a new object with the same values as this object. This
method copies the fields of the object and all childs, but not
the father. Also, every object is created new and a new
IDGenerator is created (there are also made new IDs for every
object). Note that only every non-abstract subclass should
write this method. Like the getDescription method, you can
choose whether and how the childs are treated.
- Overrides:
copy
in class RpBase
- Following copied from class:
net.sourceforge.worldsaver.rp.RpBase
- Parameters:
childs
- true means copy the childs, toofull
- true means copy the childs of the childs etc., too- Returns:
- the new object (the father of all childs)