Planeshift
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | Static Protected Attributes

gemNPCObject Class Reference

#include <gem.h>

List of all members.

Public Member Functions

 gemNPCObject (psNPCClient *npcclient, EID id)
virtual gemNPCActorGetActorPtr ()
EID GetEID ()
virtual InstanceID GetInstance ()
iMeshWrapper * GetMeshWrapper ()
const char * GetName ()
virtual NPCGetNPC ()
virtual const char * GetObjectType ()
virtual PID GetPID ()
int GetType ()
bool InitMesh (const char *factname, const char *filename, const csVector3 &pos, const float rotangle, const char *sector)
virtual bool IsAlive ()
virtual bool IsInvincible ()
virtual bool IsInvisible ()
virtual bool IsPickable ()
virtual bool IsVisible ()
void Move (const csVector3 &pos, float rotangle, const char *room)
void Move (const csVector3 &pos, float rotangle, const char *room, InstanceID instance)
virtual void SetAlive (bool alive)
virtual void SetInstance (InstanceID instance)
virtual void SetInvincible (bool inv)
virtual void SetInvisible (bool invis)
virtual void SetPosition (csVector3 &pos, iSector *sector=NULL, InstanceID *instance=NULL)
virtual void SetVisible (bool vis)
virtual ~gemNPCObject ()

Static Public Member Functions

static void FiniMesh ()

Public Attributes

npcMeshpcmesh

Protected Attributes

float baseScale
EID eid
csRef< iThreadReturn > factory
InstanceID instance
bool invincible
bool isAlive
csString name
float scale
int type
bool visible

Static Protected Attributes

static csRef< iMeshFactoryWrapper > nullfact

Detailed Description

Definition at line 78 of file gem.h.


Constructor & Destructor Documentation

gemNPCObject::gemNPCObject ( psNPCClient npcclient,
EID  id 
)
virtual gemNPCObject::~gemNPCObject ( ) [virtual]

Member Function Documentation

static void gemNPCObject::FiniMesh ( ) [static]
virtual gemNPCActor* gemNPCObject::GetActorPtr ( ) [inline, virtual]

Reimplemented in gemNPCActor.

Definition at line 115 of file gem.h.

EID gemNPCObject::GetEID ( ) [inline]

Definition at line 92 of file gem.h.

virtual InstanceID gemNPCObject::GetInstance ( ) [inline, virtual]

Definition at line 166 of file gem.h.

iMeshWrapper* gemNPCObject::GetMeshWrapper ( )
const char* gemNPCObject::GetName ( ) [inline]

Definition at line 102 of file gem.h.

virtual NPC* gemNPCObject::GetNPC ( ) [inline, virtual]

Reimplemented in gemNPCActor.

Definition at line 156 of file gem.h.

virtual const char* gemNPCObject::GetObjectType ( ) [inline, virtual]

Reimplemented in gemNPCActor, and gemNPCItem.

Definition at line 111 of file gem.h.

virtual PID gemNPCObject::GetPID ( ) [inline, virtual]

Reimplemented in gemNPCActor.

Definition at line 106 of file gem.h.

int gemNPCObject::GetType ( ) [inline]

Definition at line 97 of file gem.h.

bool gemNPCObject::InitMesh ( const char *  factname,
const char *  filename,
const csVector3 &  pos,
const float  rotangle,
const char *  sector 
)
virtual bool gemNPCObject::IsAlive ( ) [inline, virtual]

Definition at line 150 of file gem.h.

virtual bool gemNPCObject::IsInvincible ( ) [inline, virtual]

Definition at line 141 of file gem.h.

virtual bool gemNPCObject::IsInvisible ( ) [inline, virtual]

Definition at line 128 of file gem.h.

virtual bool gemNPCObject::IsPickable ( ) [inline, virtual]

Reimplemented in gemNPCItem.

Definition at line 120 of file gem.h.

virtual bool gemNPCObject::IsVisible ( ) [inline, virtual]

Definition at line 124 of file gem.h.

void gemNPCObject::Move ( const csVector3 &  pos,
float  rotangle,
const char *  room 
)
void gemNPCObject::Move ( const csVector3 &  pos,
float  rotangle,
const char *  room,
InstanceID  instance 
)
virtual void gemNPCObject::SetAlive ( bool  alive) [virtual]
virtual void gemNPCObject::SetInstance ( InstanceID  instance) [inline, virtual]

Definition at line 162 of file gem.h.

virtual void gemNPCObject::SetInvincible ( bool  inv) [inline, virtual]

Definition at line 145 of file gem.h.

virtual void gemNPCObject::SetInvisible ( bool  invis) [inline, virtual]

Definition at line 136 of file gem.h.

virtual void gemNPCObject::SetPosition ( csVector3 &  pos,
iSector *  sector = NULL,
InstanceID instance = NULL 
) [virtual]
virtual void gemNPCObject::SetVisible ( bool  vis) [inline, virtual]

Definition at line 132 of file gem.h.


Member Data Documentation

Definition at line 183 of file gem.h.

EID gemNPCObject::eid [protected]

Definition at line 177 of file gem.h.

csRef<iThreadReturn> gemNPCObject::factory [protected]

Definition at line 187 of file gem.h.

Definition at line 185 of file gem.h.

bool gemNPCObject::invincible [protected]

Definition at line 180 of file gem.h.

bool gemNPCObject::isAlive [protected]

Definition at line 181 of file gem.h.

csString gemNPCObject::name [protected]

Definition at line 176 of file gem.h.

csRef<iMeshFactoryWrapper> gemNPCObject::nullfact [static, protected]

Definition at line 174 of file gem.h.

Definition at line 169 of file gem.h.

Definition at line 182 of file gem.h.

int gemNPCObject::type [protected]

Definition at line 178 of file gem.h.

bool gemNPCObject::visible [protected]

Definition at line 179 of file gem.h.


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