Planeshift
Public Member Functions | Protected Attributes

LocationPerception Class Reference

Whenever an NPC is close to an location, this perception is passed to the npc. 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.
 LocationPerception (const char *n, const char *type, Location *location, iEngine *engine)
virtual PerceptionMakeCopy ()
 Make a copy of this perception.
virtual ~LocationPerception ()

Protected Attributes

Locationlocation

Detailed Description

Whenever an NPC is close to an location, this perception is passed to the npc.

Definition at line 260 of file perceptions.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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:
posThe position of the location.
sectorThe 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.


Member Data Documentation

Definition at line 263 of file perceptions.h.


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