|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.jadv.server.lib.ObjectMover
This class holds the functions to move Objects around. This also includes sending of events if needed!
Constructor Summary | |
ObjectMover()
|
Method Summary | |
static java.awt.Point |
getXY(java.lang.String locID)
Get the x and y coordinate of the locationID |
static boolean |
livingMove(Living liv,
JAdvObject target)
move a Living into a location. |
static boolean |
move(JAdvObject obj,
JAdvObject target)
Moves an object into another Object |
static boolean |
move(java.lang.String objID,
java.lang.String targetID)
Moves an object into another Object (With IDs!) |
static boolean |
moveDir(Living liv,
byte direction)
Moves a living into a direction |
static boolean |
moveDir(java.lang.String livID,
byte direction)
Moves a living into a direction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ObjectMover()
Method Detail |
public static java.awt.Point getXY(java.lang.String locID)
locID
- - the ID of the location
public static boolean livingMove(Living liv, JAdvObject target)
liv
- The living to movetarget
- The target! This must be a Location!
public static boolean move(JAdvObject obj, JAdvObject target)
obj
- The object to movetarget
- The target of the move
public static boolean move(java.lang.String objID, java.lang.String targetID)
objID
- The id of the object to movetargetID
- the id of the target
public static boolean moveDir(Living liv, byte direction)
liv
- - living to movedirection
- - direction to move into
public static boolean moveDir(java.lang.String livID, byte direction)
livID
- - ID of living to movedirection
- - direction to move into
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |