|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jadv.basic.SavedObject | +--org.jadv.basic.JAdvObject | +--org.jadv.basic.Location
A Location is a small room inside a Level
Field Summary | |
private java.lang.String |
_nextLocationName
|
Fields inherited from class org.jadv.basic.JAdvObject |
_children, _description, _HeartBeatTime, _Size |
Fields inherited from class org.jadv.basic.SavedObject |
ObjMan |
Constructor Summary | |
Location()
|
Method Summary | |
void |
addChild(JAdvObject obj)
Add a child-Object inside this object Also includes this inside the level! |
boolean |
canMoveIn(JAdvObject obj)
Checks, if the object can move inside this Object |
java.lang.String |
getIsBlocked()
|
java.lang.String |
getNextLocationName()
getNextLocationId() Returns the next Location |
void |
init(java.util.HashMap attribs)
initialize the location |
void |
save()
store everything inside the attributes! |
void |
setNextLocationName(java.lang.String name)
setNextLocationId(id) Set the next location, that could be used. |
Methods inherited from class org.jadv.basic.JAdvObject |
canMoveOut, create, destroyObject, disableHeartBeat, enableHeartBeat, getDescription, getMasterParentID, getOldParentID, getParentID, getSight, getSize, HeartBeat, removeChild, reset, sendPlayerEvent, setDescription, setMasterParentID_DEEP, setMasterParentID, setOldParentID, setParentID, setSize, setTimer, timer |
Methods inherited from class org.jadv.basic.SavedObject |
addEvent, canBeSwapped, createAttributes, createObject, createObject, createUUID, findObject, getAttribute, getAttributes, getAutoStart, getDeveloper, getId, getIntAttribute, getIntAttribute, getName, getNext, getPrev, hexFormat, isChanged, isValid, loadObject, markChanged, markNotChanged, mergeAttributes, removeFromList, replaceObject, replaceObject, saveObject, setAttribute, setId, setIntAttribute, setName, storeAfter, swapOut |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String _nextLocationName
Constructor Detail |
public Location()
Method Detail |
public void addChild(JAdvObject obj)
addChild
in class JAdvObject
obj
- - object to add to this objects.public java.lang.String getIsBlocked()
public java.lang.String getNextLocationName()
public void init(java.util.HashMap attribs)
init
in class JAdvObject
attribs
- - Attributes of locationpublic boolean canMoveIn(JAdvObject obj)
canMoveIn
in class JAdvObject
obj
- - Object to move inside
public void save()
JAdvObject
save
in class JAdvObject
public void setNextLocationName(java.lang.String name)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |