|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.skills.RakshasaSkills
Handles some of the special abilities for the Rakshasa race.
Constructor Summary | |
RakshasaSkills()
|
Method Summary | |
java.lang.Object |
createClone()
Produces a clone of the property for the caller. |
CommandEvent |
createEvent(CommandEvent event)
Creates a CommandEvent that encapsulates all the state necessary to perform the command. |
boolean |
equals(java.lang.Object o)
|
boolean |
execute(CommandEvent event)
Executes the specified CommandEvent. |
int |
hashCode()
|
boolean |
knowsCommand(java.lang.String cmd)
Returns true if we handle a rakshasa-specific command. |
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. |
void |
notifyAdd(PropertyList obj)
Notifies the property that it's being added. |
void |
notifyRemove(PropertyList obj)
Notifies the property that it's being removed. |
boolean |
showCatCommands(CommandEvent event)
Shows the cat-specific atmospheres. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RakshasaSkills()
Method Detail |
public void notifyAdd(PropertyList obj)
notifyAdd
in interface AddRemoveNotify
obj
- the GameObject whose property list we're being
added to (in this case, the rakshasa player)public void notifyRemove(PropertyList obj)
notifyRemove
in interface AddRemoveNotify
obj
- the GameObject whose property list we're being
removed from (in this case, the naga player)public void methodCalled(java.lang.String hookName, MethodHookable target, java.lang.Object data)
methodCalled
in interface MethodHookCallback
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.public boolean knowsCommand(java.lang.String cmd)
knowsCommand
in interface Command
cmd
- the entire command string, including arguments
public CommandEvent createEvent(CommandEvent event)
Command
This method is called by the kernel. The kernel passes the event to the pre-hook, then calls Command.execute() (below) to execute the event, and finally calls the post-hook.
createEvent
in interface Command
event
- a "blank" CommandEvent containing only the
command text and the agent who's performing the command. This
initial event is created by the originator of the event (e.g.
the AI or player's command preprocessor).
public boolean execute(CommandEvent event)
Command
execute
in interface Command
event
- the CommandEvent to execute
public boolean showCatCommands(CommandEvent event)
public java.lang.String toString()
public java.lang.Object createClone()
MutableProperty
createClone
in interface MutableProperty
public boolean equals(java.lang.Object o)
public int hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |