Planeshift
Public Member Functions | Protected Attributes

PositionPerception Class Reference

Percept a position. More...

#include <perceptions.h>

List of all members.

Public Member Functions

virtual bool GetLocation (csVector3 &pos, iSector *&sector)
 Get a location assosiated with the perception.
virtual float GetRadius () const
 Get the radius of the perception.
virtual PerceptionMakeCopy ()
 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

Detailed Description

Percept a position.

Definition at line 281 of file perceptions.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Parameters:
posThe position of the location.
sectorThe sector of the location.
Returns:
true if there where a location.

Reimplemented from Perception.

virtual float PositionPerception::GetRadius ( ) const [virtual]

Get the radius of the perception.

Reimplemented from Perception.

virtual Perception* PositionPerception::MakeCopy ( ) [virtual]

Make a copy of this perception.

Returns:
the copy.

Reimplemented from Perception.


Member Data Documentation

Definition at line 284 of file perceptions.h.

csVector3 PositionPerception::pos [protected]

Definition at line 286 of file perceptions.h.

Definition at line 289 of file perceptions.h.

iSector* PositionPerception::sector [protected]

Definition at line 285 of file perceptions.h.

Definition at line 287 of file perceptions.h.


The documentation for this class was generated from the following file: