Planeshift
|
Whenever an NPC is close to an location, this perception is passed to the npc. More...
#include <perceptions.h>
Public Member Functions | |
virtual bool | GetLocation (csVector3 &pos, iSector *§or) |
Get a location assosiated with the perception. | |
virtual float | GetRadius () const |
Get the radius of the perception. | |
LocationPerception (const char *n, const char *type, Location *location, iEngine *engine) | |
virtual Perception * | MakeCopy () |
Make a copy of this perception. | |
virtual | ~LocationPerception () |
Protected Attributes | |
Location * | location |
Whenever an NPC is close to an location, this perception is passed to the npc.
Definition at line 260 of file perceptions.h.
LocationPerception::LocationPerception | ( | const char * | n, |
const char * | type, | ||
Location * | location, | ||
iEngine * | engine | ||
) | [inline] |
Definition at line 266 of file perceptions.h.
virtual LocationPerception::~LocationPerception | ( | ) | [inline, virtual] |
Definition at line 268 of file perceptions.h.
virtual bool LocationPerception::GetLocation | ( | csVector3 & | pos, |
iSector *& | sector | ||
) | [virtual] |
Get a location assosiated with the perception.
Some perception might hold a location. Default impl get location from target if there is one.
pos | The position of the location. |
sector | The sector of the location. |
Reimplemented from Perception.
virtual float LocationPerception::GetRadius | ( | ) | const [virtual] |
Get the radius of the perception.
Reimplemented from Perception.
virtual Perception* LocationPerception::MakeCopy | ( | ) | [virtual] |
Location* LocationPerception::location [protected] |
Definition at line 263 of file perceptions.h.