Pol  Revision:cb584c9
Pol::Mobile::VitalValue Class Reference

#include <charactr.h>

Public Member Functions

 VitalValue ()
 
int current () const
 
int current_ones () const
 
int current_thousands () const
 
bool is_at_maximum () const
 
int maximum () const
 
int maximum_ones () const
 
int regenrate () const
 

Protected Member Functions

bool consume (unsigned int hamt)
 
void current (int cur)
 
void current_ones (int ones)
 
void maximum (int val)
 
void produce (unsigned int hamt)
 
void regenrate (int rate)
 

Private Attributes

unsigned int _current
 
unsigned int _maximum
 
int _regenrate
 

Friends

class Character
 

Detailed Description

Definition at line 187 of file charactr.h.

Constructor & Destructor Documentation

Pol::Mobile::VitalValue::VitalValue ( )
inline

Definition at line 190 of file charactr.h.

Member Function Documentation

bool Pol::Mobile::VitalValue::consume ( unsigned int  hamt)
inlineprotected

Definition at line 225 of file charactr.h.

Referenced by Pol::Mobile::Character::consume().

void Pol::Mobile::VitalValue::current ( int  cur)
inlineprotected

Definition at line 206 of file charactr.h.

void Pol::Mobile::VitalValue::current_ones ( int  ones)
inlineprotected

Definition at line 212 of file charactr.h.

int Pol::Mobile::VitalValue::current_thousands ( ) const
inline

Definition at line 194 of file charactr.h.

Referenced by Pol::Network::send_fake_hits(), and Pol::Core::send_short_statmsg().

bool Pol::Mobile::VitalValue::is_at_maximum ( ) const
inline

Definition at line 201 of file charactr.h.

Referenced by Pol::Mobile::Character::check_undamaged().

int Pol::Mobile::VitalValue::maximum ( ) const
inline
void Pol::Mobile::VitalValue::maximum ( int  val)
inlineprotected

Definition at line 218 of file charactr.h.

void Pol::Mobile::VitalValue::produce ( unsigned int  hamt)
inlineprotected

Definition at line 238 of file charactr.h.

Referenced by Pol::Mobile::Character::produce().

int Pol::Mobile::VitalValue::regenrate ( ) const
inline
void Pol::Mobile::VitalValue::regenrate ( int  rate)
inlineprotected

Definition at line 224 of file charactr.h.

Friends And Related Function Documentation

friend class Character
friend

Definition at line 205 of file charactr.h.

Member Data Documentation

unsigned int Pol::Mobile::VitalValue::_current
private

Definition at line 252 of file charactr.h.

Referenced by Pol::Mobile::Character::resurrect().

unsigned int Pol::Mobile::VitalValue::_maximum
private

Definition at line 253 of file charactr.h.

int Pol::Mobile::VitalValue::_regenrate
private

Definition at line 254 of file charactr.h.


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