Planeshift
Public Member Functions | Protected Attributes

ItemPerception Class Reference

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

#include <perceptions.h>

List of all members.

Public Member Functions

virtual gemNPCObjectGetTarget ()
 Some perception has a target/source.
 ItemPerception (const char *n, gemNPCObject *i)
virtual PerceptionMakeCopy ()
 Make a copy of this perception.
virtual ~ItemPerception ()

Protected Attributes

csWeakRef< gemNPCObjectitem

Detailed Description

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

Definition at line 237 of file perceptions.h.


Constructor & Destructor Documentation

ItemPerception::ItemPerception ( const char *  n,
gemNPCObject i 
) [inline]

Definition at line 243 of file perceptions.h.

virtual ItemPerception::~ItemPerception ( ) [inline, virtual]

Definition at line 245 of file perceptions.h.


Member Function Documentation

virtual gemNPCObject* ItemPerception::GetTarget ( ) [inline, virtual]

Some perception has a target/source.

See also:
DamagePerception
Returns:
the target of this perception.

Reimplemented from Perception.

Definition at line 248 of file perceptions.h.

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

Make a copy of this perception.

Returns:
the copy.

Reimplemented from Perception.


Member Data Documentation

csWeakRef<gemNPCObject> ItemPerception::item [protected]

Definition at line 240 of file perceptions.h.


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