Planeshift
Classes | Defines | Enumerations

vitals.h File Reference

Go to the source code of this file.

Classes

class  psVitalManager< Vital >
 Manages a set of Vitals and does the predictions and updates on them when new data comes from the server. More...

Defines

#define HP_REGEN_RATE   0.2F
#define MANA_REGEN_RATE   0.2F

Enumerations

enum  PS_DIRTY_VITALS {
  DIRTY_VITAL_HP = 0x0001, DIRTY_VITAL_HP_MAX = 0x0002, DIRTY_VITAL_HP_RATE = 0x0004, DIRTY_VITAL_MANA = 0x0008,
  DIRTY_VITAL_MANA_MAX = 0x0010, DIRTY_VITAL_MANA_RATE = 0x0020, DIRTY_VITAL_PYSSTAMINA = 0x0040, DIRTY_VITAL_PYSSTAMINA_MAX = 0x0080,
  DIRTY_VITAL_PYSSTAMINA_RATE = 0x0100, DIRTY_VITAL_MENSTAMINA = 0x0200, DIRTY_VITAL_MENSTAMINA_MAX = 0x0400, DIRTY_VITAL_MENSTAMINA_RATE = 0x0800,
  DIRTY_VITAL_EXPERIENCE = 0x1000, DIRTY_VITAL_PROGRESSION = 0x2000, DIRTY_VITAL_ALL
}
 

Used by the server to tell which fields are incoming.

More...
enum  PS_VITALS {
  VITAL_HITPOINTS, VITAL_MANA, VITAL_PYSSTAMINA, VITAL_MENSTAMINA,
  VITAL_COUNT
}
 

The vitals that the client is concerned about.

More...

Define Documentation

#define HP_REGEN_RATE   0.2F

Definition at line 23 of file vitals.h.

#define MANA_REGEN_RATE   0.2F

Definition at line 24 of file vitals.h.


Enumeration Type Documentation

Used by the server to tell which fields are incoming.

Enumerator:
DIRTY_VITAL_HP 
DIRTY_VITAL_HP_MAX 
DIRTY_VITAL_HP_RATE 
DIRTY_VITAL_MANA 
DIRTY_VITAL_MANA_MAX 
DIRTY_VITAL_MANA_RATE 
DIRTY_VITAL_PYSSTAMINA 
DIRTY_VITAL_PYSSTAMINA_MAX 
DIRTY_VITAL_PYSSTAMINA_RATE 
DIRTY_VITAL_MENSTAMINA 
DIRTY_VITAL_MENSTAMINA_MAX 
DIRTY_VITAL_MENSTAMINA_RATE 
DIRTY_VITAL_EXPERIENCE 
DIRTY_VITAL_PROGRESSION 
DIRTY_VITAL_ALL 

Definition at line 40 of file vitals.h.

enum PS_VITALS

The vitals that the client is concerned about.

Used as params into the vitals manager.

Enumerator:
VITAL_HITPOINTS 
VITAL_MANA 
VITAL_PYSSTAMINA 
VITAL_MENSTAMINA 
VITAL_COUNT 

Definition at line 30 of file vitals.h.