Whenever an NPC is close to an location, this perception is passed to the npc.
More...
#include <perceptions.h>
Whenever an NPC is close to an location, this perception is passed to the npc.
Definition at line 257 of file perceptions.h.
LocationPerception::LocationPerception |
( |
const char * |
n, |
|
|
const char * |
type, |
|
|
Location * |
location, |
|
|
iEngine * |
engine |
|
) |
| |
|
inline |
virtual LocationPerception::~LocationPerception |
( |
| ) |
|
|
inlinevirtual |
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.
- Parameters
-
pos | The position of the location. |
sector | The sector of the location. |
- Returns
- true if there where a location.
Reimplemented from Perception.
virtual float LocationPerception::GetRadius |
( |
| ) |
const |
|
virtual |
Get the radius of the perception.
Reimplemented from Perception.
virtual Perception* LocationPerception::MakeCopy |
( |
| ) |
|
|
virtual |
Make a copy of this perception.
- Returns
- the copy.
Reimplemented from Perception.
The documentation for this class was generated from the following file: