net.sourceforge.worldsaver.rp
Class Armor
java.lang.Object
|
+--net.sourceforge.worldsaver.rp.RpBase
|
+--net.sourceforge.worldsaver.rp.Armor
- All Implemented Interfaces:
- MiscUtils, Saveable
- public class Armor
- extends RpBase
- implements Saveable
This class represents a piece of cloth...
- Version:
- Feb 16 2001
- Author:
- Andreas Schmitz
Constructor Summary |
Armor(java.util.HashMap loaded)
Constructs a new Armor from loaded data. |
Armor(RpBase father,
java.lang.String name)
The standard constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Armor
public Armor(RpBase father,
java.lang.String name)
- The standard constructor.
- Parameters:
father
- the fathername
- the name- See Also:
RpBase.RpBase(net.sourceforge.worldsaver.rp.RpBase, java.lang.String)
Armor
public Armor(java.util.HashMap loaded)
- Constructs a new Armor from loaded data.
- Parameters:
loaded
- the loaded values- See Also:
RpBase.RpBase(net.sourceforge.worldsaver.rp.RpBase, java.lang.String)
,
Loader
getReferencesRight
public void getReferencesRight(java.util.HashMap pool,
IDGenerator gen)
- Gets the references right after loading.
- Specified by:
getReferencesRight
in interface Saveable
- Overrides:
getReferencesRight
in class RpBase
- Parameters:
pool
- all objectsgen
- the id-Generator- See Also:
RpBase.getReferencesRight(java.util.HashMap, net.sourceforge.worldsaver.util.IDGenerator)
getSaveableString
public java.lang.String getSaveableString()
throws java.io.IOException
- Returns a saveable String.
- Specified by:
getSaveableString
in interface Saveable
- Overrides:
getSaveableString
in class RpBase
- Returns:
- the String
- Throws:
java.io.IOException
- if objects are not valid- See Also:
RpBase.getSaveableString()
,
Saveable
copy
public RpBase copy(boolean childs,
boolean full)
- Returns a copy of this Armor.
- Overrides:
copy
in class RpBase
- Parameters:
childs
- whether the childs should be copied, toofull
- whether the childs of the childs should be copied,
too, etc.