|
|||||||||||
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
This is a basic GameObject, that is used inside the game.
Field Summary | |
protected java.util.Collection |
_children
|
int |
_description
|
int |
_HeartBeatTime
|
private EventTimerTask |
_HeartBeatTimerTask
|
private java.lang.String |
_masterParentID
|
private java.lang.String |
_oldParentID
|
private java.lang.String |
_parentID
|
int |
_Size
|
private EventTimerTask |
_TimerTimerTask
|
Fields inherited from class org.jadv.basic.SavedObject |
ObjMan |
Constructor Summary | |
JAdvObject()
Constructor |
|
JAdvObject(org.jdom.Element el)
|
Method Summary | |
void |
addChild(JAdvObject obj)
Add a child-Object inside this object |
boolean |
canMoveIn(JAdvObject obj)
Checks, if the object can move inside this Object |
boolean |
canMoveOut(JAdvObject obj)
Checks, if the object can move out of this Object |
void |
create()
Create the Object |
void |
destroyObject()
Destroy this object (Object will be deleted completly!) |
void |
disableHeartBeat()
disabels the HeartBeat of this object |
void |
enableHeartBeat()
enables the HeartBeat of this object! |
int |
getDescription()
Returns the description of the Object |
java.lang.String |
getMasterParentID()
Returns the MasterParentID (The of the object, that is responible for this object! |
java.lang.String |
getOldParentID()
Returns the old ParentID. |
java.lang.String |
getParentID()
getParentID() Returns the ID of the parent |
int |
getSight()
getSight() Returns the sight of this object |
int |
getSize()
Get the size of the Object |
void |
HeartBeat()
HeartBeat is the callback function of an object, that wants HeartBeats |
void |
init(java.util.HashMap attribs)
Initialisation of the object! |
void |
removeChild(JAdvObject obj)
Remove an Object out of the list of children |
void |
reset()
Resets the object (if needed) |
void |
save()
store everything inside the attributes! |
static void |
sendPlayerEvent(java.lang.String playerID,
JAdvEvent event)
Sends an Event to a player |
void |
setDescription(int description)
Sets the description of the object |
void |
setMasterParentID_DEEP(java.lang.String id)
Set the MasterParentID of this and all included Objects! |
void |
setMasterParentID(java.lang.String id)
Set the MasterParentID. |
void |
setOldParentID(java.lang.String id)
Set the OldParentID. |
void |
setParentID(java.lang.String id)
Set the if of the parent |
void |
setSize(int size)
Set the size of the object |
void |
setTimer(long time)
Set the timer. |
void |
timer()
timer() CallBack method for timer Events |
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 _parentID
private java.lang.String _oldParentID
private java.lang.String _masterParentID
public int _description
public int _HeartBeatTime
public int _Size
protected java.util.Collection _children
private EventTimerTask _HeartBeatTimerTask
private EventTimerTask _TimerTimerTask
Constructor Detail |
public JAdvObject()
org.jadv.basic.SavedObject#SavedObject(String)
public JAdvObject(org.jdom.Element el)
Method Detail |
public void addChild(JAdvObject obj)
obj
- public boolean canMoveIn(JAdvObject obj)
obj
-
public boolean canMoveOut(JAdvObject obj)
obj
-
public void create()
create
in class SavedObject
SavedObject.create()
public void disableHeartBeat()
public void destroyObject()
destroyObject
in class SavedObject
public void enableHeartBeat()
public int getDescription()
public java.lang.String getMasterParentID()
public java.lang.String getOldParentID()
public java.lang.String getParentID()
public int getSight()
public int getSize()
public void HeartBeat()
public void init(java.util.HashMap attribs)
init
in class SavedObject
attribs
- - the attributes of the objectpublic void removeChild(JAdvObject obj)
obj
- public void reset()
public void save()
save
in class SavedObject
public static void sendPlayerEvent(java.lang.String playerID, JAdvEvent event)
playerID
- ID of the player to send Event toevent
- Event to sendpublic void setDescription(int description)
description
- public void setMasterParentID(java.lang.String id)
id
- public void setMasterParentID_DEEP(java.lang.String id)
id
- public void setOldParentID(java.lang.String id)
id
- public void setParentID(java.lang.String id)
id
- public void setSize(int size)
size
- - the new size of the object.public void setTimer(long time)
time
- - time for the timer in secondspublic void timer()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |