Planeshift
gemNPCActor Class Reference

#include <gem.h>

Public Member Functions

virtual void AttachNPC (NPC *newNPC)
 
 gemNPCActor (psNPCClient *npcclient, psPersistActor &mesg)
 
virtual gemNPCActorGetActorPtr ()
 
float GetHP ()
 Get the actor HP. More...
 
float GetHPRate () const
 Get the actor HPRate. More...
 
float GetMana ()
 Get the actor Mana. More...
 
float GetManaRate () const
 Get the actor ManaRate. More...
 
float GetMaxHP () const
 Get the actor MaxHP. More...
 
float GetMaxMana () const
 Get the actor MaxMana. More...
 
float GetMaxMenStamina () const
 Get the actor MaxMenStamina. More...
 
float GetMaxPysStamina () const
 Get the actor MaxPysStamina. More...
 
float GetMenStamina ()
 Get the actor MenStamina. More...
 
float GetMenStaminaRate () const
 Get the actor MenStaminaRate. More...
 
virtual NPCGetNPC ()
 
virtual const char * GetObjectType ()
 
virtual EID GetOwnerEID ()
 
virtual PID GetPID ()
 
float GetPysStamina ()
 Get the actor PysStamina. More...
 
float GetPysStaminaRate () const
 Get the actor PysStaminaRate. More...
 
csString & GetRace ()
 
void SetHP (float hp)
 Set the actor HP. More...
 
void SetHPRate (float hpRate)
 Set the actor HP. More...
 
void SetMana (float mana)
 Set the actor Mana. More...
 
void SetManaRate (float manaRate)
 Set the actor ManaRate. More...
 
void SetMaxHP (float maxHP)
 Set the actor MaxHP. More...
 
void SetMaxMana (float maxMana)
 Set the actor MaxMana. More...
 
void SetMaxMenStamina (float maxMenStamina)
 Set the actor MaxMenStamina. More...
 
void SetMaxPysStamina (float maxPysStamina)
 Set the actor MaxPysStamina. More...
 
void SetMenStamina (float menStamina)
 Set the actor MenStamina. More...
 
void SetMenStaminaRate (float menStaminaRate)
 Set the actor MenStaminaRate. More...
 
void SetPysStamina (float pysStamina)
 Set the actor PysStamina. More...
 
void SetPysStaminaRate (float pysStaminaRate)
 Set the actor PysStaminaRate. More...
 
virtual bool SetWithinTribe (Tribe *tribe, Tribe **oldTribe=NULL)
 Set the within tribe. More...
 
virtual ~gemNPCActor ()
 
- Public Member Functions inherited from gemNPCObject
 gemNPCObject (psNPCClient *npcclient, EID id)
 
EID GetEID ()
 
virtual InstanceID GetInstance ()
 
iMeshWrapper * GetMeshWrapper ()
 
const char * GetName ()
 
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 ()
 
- Public Member Functions inherited from iScriptableVar
virtual ~iScriptableVar ()
 

Public Attributes

psLinearMovementpcmove
 
- Public Attributes inherited from gemNPCObject
npcMeshpcmesh
 

Protected Member Functions

bool InitCharData (const char *textures, const char *equipment)
 
bool InitLinMove (const csVector3 &pos, float angle, const char *sector, csVector3 top, csVector3 bottom, csVector3 offset)
 

Protected Attributes

Stat hp
 Points to the tribe home where this tribe is inside. More...
 
Stat mana
 
Stat menStamina
 
NPCnpc
 
EID ownerEID
 
PID playerID
 
Stat pysStamina
 
csString race
 
TribewithinTribe
 
- Protected Attributes inherited from gemNPCObject
float baseScale
 
EID eid
 
csRef< iThreadReturn > factory
 
InstanceID instance
 
bool invincible
 
bool isAlive
 
csString name
 
float scale
 
int type
 
bool visible
 

Additional Inherited Members

- Static Public Member Functions inherited from gemNPCObject
static void FiniMesh ()
 
- Static Protected Attributes inherited from gemNPCObject
static csRef< iMeshFactoryWrapper > nullfact
 

Detailed Description

Definition at line 191 of file gem.h.

Constructor & Destructor Documentation

gemNPCActor::gemNPCActor ( psNPCClient npcclient,
psPersistActor mesg 
)
virtual gemNPCActor::~gemNPCActor ( )
virtual

Member Function Documentation

virtual void gemNPCActor::AttachNPC ( NPC newNPC)
virtual
virtual gemNPCActor* gemNPCActor::GetActorPtr ( )
inlinevirtual

Reimplemented from gemNPCObject.

Definition at line 218 of file gem.h.

float gemNPCActor::GetHP ( )

Get the actor HP.

float gemNPCActor::GetHPRate ( ) const

Get the actor HPRate.

float gemNPCActor::GetMana ( )

Get the actor Mana.

float gemNPCActor::GetManaRate ( ) const

Get the actor ManaRate.

float gemNPCActor::GetMaxHP ( ) const

Get the actor MaxHP.

float gemNPCActor::GetMaxMana ( ) const

Get the actor MaxMana.

float gemNPCActor::GetMaxMenStamina ( ) const

Get the actor MaxMenStamina.

float gemNPCActor::GetMaxPysStamina ( ) const

Get the actor MaxPysStamina.

float gemNPCActor::GetMenStamina ( )

Get the actor MenStamina.

float gemNPCActor::GetMenStaminaRate ( ) const

Get the actor MenStaminaRate.

virtual NPC* gemNPCActor::GetNPC ( )
inlinevirtual

Reimplemented from gemNPCObject.

Definition at line 224 of file gem.h.

virtual const char* gemNPCActor::GetObjectType ( )
inlinevirtual

Reimplemented from gemNPCObject.

Definition at line 214 of file gem.h.

virtual EID gemNPCActor::GetOwnerEID ( )
inlinevirtual

Definition at line 204 of file gem.h.

virtual PID gemNPCActor::GetPID ( )
inlinevirtual

Reimplemented from gemNPCObject.

Definition at line 200 of file gem.h.

float gemNPCActor::GetPysStamina ( )

Get the actor PysStamina.

float gemNPCActor::GetPysStaminaRate ( ) const

Get the actor PysStaminaRate.

csString& gemNPCActor::GetRace ( )
inline

Definition at line 209 of file gem.h.

bool gemNPCActor::InitCharData ( const char *  textures,
const char *  equipment 
)
protected
bool gemNPCActor::InitLinMove ( const csVector3 &  pos,
float  angle,
const char *  sector,
csVector3  top,
csVector3  bottom,
csVector3  offset 
)
protected
void gemNPCActor::SetHP ( float  hp)

Set the actor HP.

void gemNPCActor::SetHPRate ( float  hpRate)

Set the actor HP.

void gemNPCActor::SetMana ( float  mana)

Set the actor Mana.

void gemNPCActor::SetManaRate ( float  manaRate)

Set the actor ManaRate.

void gemNPCActor::SetMaxHP ( float  maxHP)

Set the actor MaxHP.

void gemNPCActor::SetMaxMana ( float  maxMana)

Set the actor MaxMana.

void gemNPCActor::SetMaxMenStamina ( float  maxMenStamina)

Set the actor MaxMenStamina.

void gemNPCActor::SetMaxPysStamina ( float  maxPysStamina)

Set the actor MaxPysStamina.

void gemNPCActor::SetMenStamina ( float  menStamina)

Set the actor MenStamina.

void gemNPCActor::SetMenStaminaRate ( float  menStaminaRate)

Set the actor MenStaminaRate.

void gemNPCActor::SetPysStamina ( float  pysStamina)

Set the actor PysStamina.

void gemNPCActor::SetPysStaminaRate ( float  pysStaminaRate)

Set the actor PysStaminaRate.

virtual bool gemNPCActor::SetWithinTribe ( Tribe tribe,
Tribe **  oldTribe = NULL 
)
virtual

Set the within tribe.

Returns
true if a new within tribe is set

Member Data Documentation

Stat gemNPCActor::hp
protected

Points to the tribe home where this tribe is inside.

Definition at line 381 of file gem.h.

Stat gemNPCActor::mana
protected

Definition at line 382 of file gem.h.

Stat gemNPCActor::menStamina
protected

Definition at line 384 of file gem.h.

NPC* gemNPCActor::npc
protected

Definition at line 376 of file gem.h.

EID gemNPCActor::ownerEID
protected

Definition at line 373 of file gem.h.

psLinearMovement* gemNPCActor::pcmove

Definition at line 198 of file gem.h.

PID gemNPCActor::playerID
protected

Definition at line 372 of file gem.h.

Stat gemNPCActor::pysStamina
protected

Definition at line 383 of file gem.h.

csString gemNPCActor::race
protected

Definition at line 374 of file gem.h.

Tribe* gemNPCActor::withinTribe
protected

Definition at line 378 of file gem.h.


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