This perception is used when a item is added or removed from inventory.
More...
#include <perceptions.h>
|
| virtual int | GetCount () const |
| |
| virtual bool | GetLocation (csVector3 &pos, iSector *§or) |
| | Get a location assosiated with the perception. More...
|
| |
| virtual float | GetRadius () const |
| | Get the radius of the perception. More...
|
| |
| | InventoryPerception (const char *n, const char *t, const int c, const csVector3 &p, iSector *s, float r) |
| |
| virtual Perception * | MakeCopy () |
| | Make a copy of this perception. More...
|
| |
| virtual void | ExecutePerception (NPC *npc, float weight) |
| | All preconditions has been checked, now excecute the perception. More...
|
| |
| virtual const csString & | GetName () const |
| | Get the name of the perception. More...
|
| |
| virtual gemNPCObject * | GetTarget () |
| | Some perception has a target/source. More...
|
| |
| const csString & | GetType () const |
| | Get the type of the perception. More...
|
| |
| | Perception (const char *name) |
| | Constructor. More...
|
| |
| | Perception (const char *name, const char *type) |
| | Constructor. More...
|
| |
| void | SetType (const char *type) |
| | Set the type of the perception. More...
|
| |
| virtual bool | ShouldReact (Reaction *reaction, NPC *npc) |
| | Check if this perception should react to a reaction. More...
|
| |
| virtual csString | ToString (NPC *npc) |
| | Get a text description of the perception. More...
|
| |
| virtual | ~Perception () |
| | Destructor. More...
|
| |
This perception is used when a item is added or removed from inventory.
Definition at line 435 of file perceptions.h.
| InventoryPerception::InventoryPerception |
( |
const char * |
n, |
|
|
const char * |
t, |
|
|
const int |
c, |
|
|
const csVector3 & |
p, |
|
|
iSector * |
s, |
|
|
float |
r |
|
) |
| |
|
inline |
| virtual int InventoryPerception::GetCount |
( |
| ) |
const |
|
inlinevirtual |
| virtual bool InventoryPerception::GetLocation |
( |
csVector3 & |
pos, |
|
|
iSector *& |
sector |
|
) |
| |
|
inlinevirtual |
Get a location assosiated with the perception.
Some perception might hold a location. Default impl get location from target if there is one.
- Parameters
-
| pos | The position of the location. |
| sector | The sector of the location. |
- Returns
- true if there where a location.
Reimplemented from Perception.
Definition at line 452 of file perceptions.h.
| virtual float InventoryPerception::GetRadius |
( |
| ) |
const |
|
inlinevirtual |
| virtual Perception* InventoryPerception::MakeCopy |
( |
| ) |
|
|
virtual |
Make a copy of this perception.
- Returns
- the copy.
Reimplemented from Perception.
| int InventoryPerception::count |
|
protected |
| csVector3 InventoryPerception::pos |
|
protected |
| float InventoryPerception::radius |
|
protected |
| iSector* InventoryPerception::sector |
|
protected |
The documentation for this class was generated from the following file: