|
Planeshift
|
Percept a position. 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. | |
| virtual Perception * | MakeCopy () |
| Make a copy of this perception. | |
| PositionPerception (const char *n, const char *type, InstanceID &instance, iSector *sector, csVector3 &pos, float yrot, float radius) | |
| virtual | ~PositionPerception () |
Protected Attributes | |
| InstanceID | instance |
| csVector3 | pos |
| float | radius |
| iSector * | sector |
| float | yrot |
Percept a position.
Definition at line 281 of file perceptions.h.
| PositionPerception::PositionPerception | ( | const char * | n, |
| const char * | type, | ||
| InstanceID & | instance, | ||
| iSector * | sector, | ||
| csVector3 & | pos, | ||
| float | yrot, | ||
| float | radius | ||
| ) | [inline] |
Definition at line 292 of file perceptions.h.
| virtual PositionPerception::~PositionPerception | ( | ) | [inline, virtual] |
Definition at line 294 of file perceptions.h.
| virtual bool PositionPerception::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 PositionPerception::GetRadius | ( | ) | const [virtual] |
Get the radius of the perception.
Reimplemented from Perception.
| virtual Perception* PositionPerception::MakeCopy | ( | ) | [virtual] |
InstanceID PositionPerception::instance [protected] |
Definition at line 284 of file perceptions.h.
csVector3 PositionPerception::pos [protected] |
Definition at line 286 of file perceptions.h.
float PositionPerception::radius [protected] |
Definition at line 289 of file perceptions.h.
iSector* PositionPerception::sector [protected] |
Definition at line 285 of file perceptions.h.
float PositionPerception::yrot [protected] |
Definition at line 287 of file perceptions.h.
1.7.3