net.sourceforge.worldsaver.rp
Class World
java.lang.Object
|
+--net.sourceforge.worldsaver.rp.RpBase
|
+--net.sourceforge.worldsaver.rp.Area
|
+--net.sourceforge.worldsaver.rp.World
- All Implemented Interfaces:
- MiscUtils, Saveable
- public class World
- extends Area
- implements MiscUtils
Represents - believe it or not - a saveable world.
- Version:
- Feb 17 2001
- Author:
- Andreas Schmitz
Field Summary |
static java.lang.String |
VERSION
|
Constructor Summary |
World(java.util.HashMap map)
Standard constructor. |
World(RpBase father,
java.lang.String name,
int x,
int y)
Standard constructor. |
Method Summary |
RpBase |
copy(boolean childs,
boolean full)
Returns a new object with the same values as this object. |
java.lang.String |
getSaveableString()
Returns a saveable String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VERSION
public static final java.lang.String VERSION
World
public World(RpBase father,
java.lang.String name,
int x,
int y)
- Standard constructor.
- See Also:
RpBase.RpBase(net.sourceforge.worldsaver.rp.RpBase, java.lang.String)
,
Area.Area(net.sourceforge.worldsaver.rp.RpBase, java.lang.String, int, int)
World
public World(java.util.HashMap map)
- Standard constructor.
- See Also:
RpBase.RpBase(net.sourceforge.worldsaver.rp.RpBase, java.lang.String)
,
Area.Area(net.sourceforge.worldsaver.rp.RpBase, java.lang.String, int, int)
getSaveableString
public java.lang.String getSaveableString()
throws java.io.IOException
- Returns a saveable String.
- Overrides:
getSaveableString
in class Area
- 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)