|
Planeshift
|
Deliver a faction based perception. More...
#include <perceptions.h>
Public Member Functions | |
| virtual void | ExecutePerception (NPC *npc, float weight) |
| All preconditions has been checked, now excecute the perception. | |
| FactionPerception (const char *n, int d, gemNPCObject *p) | |
| virtual gemNPCObject * | GetTarget () |
| Some perception has a target/source. | |
| virtual Perception * | MakeCopy () |
| Make a copy of this perception. | |
| virtual bool | ShouldReact (Reaction *reaction, NPC *npc) |
| Check if this perception should react to a reaction. | |
| virtual | ~FactionPerception () |
Protected Attributes | |
| int | factionDelta |
| csWeakRef< gemNPCActor > | player |
Deliver a faction based perception.
Faction based perception can be perception like "talk" or "player nearby".
Definition at line 211 of file perceptions.h.
| FactionPerception::FactionPerception | ( | const char * | n, |
| int | d, | ||
| gemNPCObject * | p | ||
| ) | [inline] |
Definition at line 218 of file perceptions.h.
| virtual FactionPerception::~FactionPerception | ( | ) | [inline, virtual] |
Definition at line 220 of file perceptions.h.
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 gemNPCObject* FactionPerception::GetTarget | ( | ) | [inline, virtual] |
Some perception has a target/source.
Reimplemented from Perception.
Definition at line 224 of file perceptions.h.
| virtual Perception* FactionPerception::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 FactionPerception::factionDelta [protected] |
Definition at line 214 of file perceptions.h.
csWeakRef<gemNPCActor> FactionPerception::player [protected] |
Definition at line 215 of file perceptions.h.
1.7.3