|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Used to notify objects registered on a "method hook". There are two basic classifications for hooks in the game:
The callback object is notified of the method that was called (it's actually passed the name of the hook), and the object instance that was called. It's possible for objects to set up more than one hook for a given method; consult the documentation for the object in question to read about the names and semantics for such hooks.
Method Summary | |
void |
methodCalled(java.lang.String hookName,
MethodHookable target,
java.lang.Object data)
Notifies the callback that a given method was called on the target object. |
Method Detail |
public void methodCalled(java.lang.String hookName, MethodHookable target, java.lang.Object data)
Don't forget to call the superclass version of the method in your implementation.
hookName
- the name of the hook being runtarget
- the object on which the method was invoked:
a GameMap or GameObject.data
- a method-specific data object; can be null.
Check the documentation for the method hook to see if
any data is passed to the callbacks.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |