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

gemNPCActor Class Reference

#include <gem.h>

List of all members.

Public Member Functions

virtual void AttachNPC (NPC *newNPC)
 gemNPCActor (psNPCClient *npcclient, psPersistActor &mesg)
virtual gemNPCActorGetActorPtr ()
float GetHP ()
 Get the actor HP.
float GetHPRate () const
 Get the actor HPRate.
float GetMana ()
 Get the actor Mana.
float GetManaRate () const
 Get the actor ManaRate.
float GetMaxHP () const
 Get the actor MaxHP.
float GetMaxMana () const
 Get the actor MaxMana.
float GetMaxMenStamina () const
 Get the actor MaxMenStamina.
float GetMaxPysStamina () const
 Get the actor MaxPysStamina.
float GetMenStamina ()
 Get the actor MenStamina.
float GetMenStaminaRate () const
 Get the actor MenStaminaRate.
virtual NPCGetNPC ()
virtual const char * GetObjectType ()
virtual EID GetOwnerEID ()
virtual PID GetPID ()
float GetPysStamina ()
 Get the actor PysStamina.
float GetPysStaminaRate () const
 Get the actor PysStaminaRate.
csString & GetRace ()
void SetHP (float hp)
 Set the actor HP.
void SetHPRate (float hpRate)
 Set the actor HP.
void SetMana (float mana)
 Set the actor Mana.
void SetManaRate (float manaRate)
 Set the actor ManaRate.
void SetMaxHP (float maxHP)
 Set the actor MaxHP.
void SetMaxMana (float maxMana)
 Set the actor MaxMana.
void SetMaxMenStamina (float maxMenStamina)
 Set the actor MaxMenStamina.
void SetMaxPysStamina (float maxPysStamina)
 Set the actor MaxPysStamina.
void SetMenStamina (float menStamina)
 Set the actor MenStamina.
void SetMenStaminaRate (float menStaminaRate)
 Set the actor MenStaminaRate.
void SetPysStamina (float pysStamina)
 Set the actor PysStamina.
void SetPysStaminaRate (float pysStaminaRate)
 Set the actor PysStaminaRate.
virtual bool SetWithinTribe (Tribe *tribe, Tribe **oldTribe=NULL)
 Set the within tribe.
virtual ~gemNPCActor ()

Public Attributes

psLinearMovementpcmove

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.
Stat mana
Stat menStamina
NPCnpc
EID ownerEID
PID playerID
Stat pysStamina
csString race
TribewithinTribe

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 ( ) [inline, virtual]

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 ( ) [inline, virtual]

Reimplemented from gemNPCObject.

Definition at line 224 of file gem.h.

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

Reimplemented from gemNPCObject.

Definition at line 214 of file gem.h.

virtual EID gemNPCActor::GetOwnerEID ( ) [inline, virtual]

Definition at line 204 of file gem.h.

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

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.

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.

Definition at line 198 of file gem.h.

PID gemNPCActor::playerID [protected]

Definition at line 372 of file gem.h.

Definition at line 383 of file gem.h.

csString gemNPCActor::race [protected]

Definition at line 374 of file gem.h.

Definition at line 378 of file gem.h.


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