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

Fields inherited from interface net.sourceforge.worldsaver.util.MiscUtils
CONSOLE_WIDTH, NEWLINE, RANDOM
 
Constructor Summary
Armor(java.util.HashMap loaded)
          Constructs a new Armor from loaded data.
Armor(RpBase father, java.lang.String name)
          The standard constructor.
 
Method Summary
 RpBase copy(boolean childs, boolean full)
          Returns a copy of this Armor.
 void getReferencesRight(java.util.HashMap pool, IDGenerator gen)
          Gets the references right after loading.
 java.lang.String getSaveableString()
          Returns a saveable String.
 
Methods inherited from class net.sourceforge.worldsaver.rp.RpBase
addChild, addDescription, getChilds, getDescription, getFather, getID, getName, setDescription, setFather, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Armor

public Armor(RpBase father,
             java.lang.String name)
The standard constructor.
Parameters:
father - the father
name - 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
Method Detail

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 objects
gen - 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, too
full - whether the childs of the childs should be copied, too, etc.