org.jadv.basic
Class Location

java.lang.Object
  |
  +--org.jadv.basic.SavedObject
        |
        +--org.jadv.basic.JAdvObject
              |
              +--org.jadv.basic.Location
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Portal

public class Location
extends JAdvObject

A Location is a small room inside a Level

Author:
neitzel
See Also:
Serialized Form

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

_nextLocationName

private java.lang.String _nextLocationName
Constructor Detail

Location

public Location()
Method Detail

addChild

public void addChild(JAdvObject obj)
Add a child-Object inside this object
Also includes this inside the level!

Overrides:
addChild in class JAdvObject
Parameters:
obj - - object to add to this objects.

getIsBlocked

public java.lang.String getIsBlocked()

getNextLocationName

public java.lang.String getNextLocationName()
getNextLocationId() Returns the next Location

Returns:
String - the next location

init

public void init(java.util.HashMap attribs)
initialize the location

Overrides:
init in class JAdvObject
Parameters:
attribs - - Attributes of location

canMoveIn

public boolean canMoveIn(JAdvObject obj)
Checks, if the object can move inside this Object

Overrides:
canMoveIn in class JAdvObject
Parameters:
obj - - Object to move inside
Returns:
boolean - true if move is possible

save

public void save()
Description copied from class: JAdvObject
store everything inside the attributes!

Overrides:
save in class JAdvObject

setNextLocationName

public void setNextLocationName(java.lang.String name)
setNextLocationId(id) Set the next location, that could be used.