|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.classes.games.SideScroller.LinkedMovement
Property to link something's movement with another object.
Field Summary | |
protected Commandable |
linkee_
|
protected GameMap |
map_
|
protected Commandable |
mover_
|
protected SideScroller |
scroller_
|
Constructor Summary | |
LinkedMovement(Commandable linkee,
Commandable mover,
SideScroller scroller)
Link one object's movement to another's. |
Method Summary | |
void |
hookEvent(java.lang.String hookName,
CommandEvent eventobj)
Movement hook handler |
void |
start()
Sets up the hooks and such. |
void |
stop()
Remove the linkage. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Commandable linkee_
protected Commandable mover_
protected GameMap map_
protected SideScroller scroller_
Constructor Detail |
public LinkedMovement(Commandable linkee, Commandable mover, SideScroller scroller)
linkee
- the obj who gets moved by othersmover
- the obj whose movement the linkee mimics.Method Detail |
public void start()
public void stop()
public void hookEvent(java.lang.String hookName, CommandEvent eventobj)
hookEvent
in interface HookCallback
hookName
- hook nameeventobj
- the CommandEvent encapsulating the event parameters
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |