|
Planeshift
|
Whenever an NPC Cmd is received this perception is fired. More...
#include <perceptions.h>
Public Member Functions | |
| virtual Perception * | MakeCopy () |
| Make a copy of this perception. | |
| NPCCmdPerception (const char *command, NPC *self) | |
| virtual bool | ShouldReact (Reaction *reaction, NPC *npc) |
| Check if this perception should react to a reaction. | |
Protected Attributes | |
| NPC * | self |
Whenever an NPC Cmd is received this perception is fired.
This is most typicaly from a response script like: Example:
<npccmd cmd="test_cmd"/>
Definition at line 539 of file perceptions.h.
| NPCCmdPerception::NPCCmdPerception | ( | const char * | command, |
| NPC * | self | ||
| ) |
| virtual Perception* NPCCmdPerception::MakeCopy | ( | ) | [virtual] |
Check if this perception should react to a reaction.
| reaction | The reaction to check for. |
| npc | The NPC that might receive this. |
Reimplemented from Perception.
NPC* NPCCmdPerception::self [protected] |
Definition at line 542 of file perceptions.h.
1.7.3