Planeshift
|
Whenever an NPCPet is told by it's owner to stay, this perception is passed to the NPCPet. More...
#include <perceptions.h>
Public Member Functions | |
virtual void | ExecutePerception (NPC *pet, float weight) |
All preconditions has been checked, now excecute the perception. | |
virtual Perception * | MakeCopy () |
Make a copy of this perception. | |
OwnerActionPerception (const char *n, int action, gemNPCObject *owner, gemNPCObject *pet) | |
virtual bool | ShouldReact (Reaction *reaction, NPC *pet) |
Check if this perception should react to a reaction. | |
Protected Attributes | |
int | action |
csWeakRef< gemNPCObject > | owner |
csWeakRef< gemNPCObject > | pet |
Whenever an NPCPet is told by it's owner to stay, this perception is passed to the NPCPet.
Right now, it changes the current behavior of the NPCPet.
Definition at line 516 of file perceptions.h.
OwnerActionPerception::OwnerActionPerception | ( | const char * | n, |
int | action, | ||
gemNPCObject * | owner, | ||
gemNPCObject * | pet | ||
) |
All preconditions has been checked, now excecute the perception.
npc | The target of the percpetion. |
weight | Indicate how much the HateList of the npc should be changed. Value comes from the reaction. |
Reimplemented from Perception.
virtual Perception* OwnerActionPerception::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.
int OwnerActionPerception::action [protected] |
Definition at line 519 of file perceptions.h.
csWeakRef<gemNPCObject> OwnerActionPerception::owner [protected] |
Definition at line 520 of file perceptions.h.
csWeakRef<gemNPCObject> OwnerActionPerception::pet [protected] |
Definition at line 521 of file perceptions.h.