|
Pol
Rev 533
|
#include <charactr.h>
Public Member Functions | |
| VitalValue () | |
| int | current () const |
| int | current_ones () 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 |
Definition at line 161 of file charactr.h.
| VitalValue::VitalValue | ( | ) | [inline] |
Definition at line 164 of file charactr.h.
| bool VitalValue::consume | ( | unsigned int | hamt | ) | [inline, protected] |
Definition at line 217 of file charactr.h.
References _current.
Referenced by Character::consume().
Here is the caller graph for this function:| int VitalValue::current | ( | ) | const [inline] |
Definition at line 167 of file charactr.h.
References _current.
Referenced by Character::apply_raw_damage_hundredths(), current(), current_ones(), maximum(), VitalExecutorModule::mf_GetVital(), Character::set_current(), and Character::set_vitals_to_maximum().
Here is the caller graph for this function:| void VitalValue::current | ( | int | cur | ) | [inline, protected] |
Definition at line 195 of file charactr.h.
References _current, _maximum, and current().
Here is the call graph for this function:| int VitalValue::current_ones | ( | ) | const [inline] |
Definition at line 171 of file charactr.h.
References _current.
Referenced by Character::calc_single_vital(), Character::can_face(), USpell::check_mana(), Character::consume(), Party::on_mana_changed(), Party::on_stam_changed(), Character::printProperties(), Character::produce(), Character::readAttributesAndVitals(), send_attributes_normalized(), send_full_statmsg(), send_mana_level(), send_short_statmsg(), send_stamina_level(), send_uo_hits(), send_uo_mana(), send_uo_stamina(), send_update_hits_to_inrange(), and Character::set_current_ones().
Here is the caller graph for this function:| void VitalValue::current_ones | ( | int | ones | ) | [inline, protected] |
Definition at line 201 of file charactr.h.
References _current, _maximum, and current().
Here is the call graph for this function:| bool VitalValue::is_at_maximum | ( | ) | const [inline] |
Definition at line 183 of file charactr.h.
References _current, and _maximum.
Referenced by Character::check_undamaged().
Here is the caller graph for this function:| int VitalValue::maximum | ( | ) | const [inline] |
Definition at line 175 of file charactr.h.
References _maximum.
Referenced by Character::calc_single_vital(), VitalExecutorModule::mf_GetVitalMaximumValue(), and Character::set_vitals_to_maximum().
Here is the caller graph for this function:| void VitalValue::maximum | ( | int | val | ) | [inline, protected] |
Definition at line 207 of file charactr.h.
References _current, _maximum, and current().
Here is the call graph for this function:| int VitalValue::maximum_ones | ( | ) | const [inline] |
Definition at line 179 of file charactr.h.
References _maximum.
Referenced by Character::calc_single_vital(), Party::on_mana_changed(), Party::on_stam_changed(), send_attributes_normalized(), send_full_statmsg(), send_mana_level(), send_short_statmsg(), send_stamina_level(), send_uo_hits(), send_uo_mana(), send_uo_stamina(), and send_update_hits_to_inrange().
Here is the caller graph for this function:| void VitalValue::produce | ( | unsigned int | hamt | ) | [inline, protected] |
Definition at line 230 of file charactr.h.
References _current, and _maximum.
Referenced by Character::produce().
Here is the caller graph for this function:| int VitalValue::regenrate | ( | ) | const [inline] |
Definition at line 187 of file charactr.h.
References _regenrate.
Referenced by Character::calc_single_vital(), VitalExecutorModule::mf_GetVitalRegenRate(), and Character::regen_vital().
Here is the caller graph for this function:| void VitalValue::regenrate | ( | int | rate | ) | [inline, protected] |
Definition at line 213 of file charactr.h.
References _regenrate.
friend class Character [friend] |
Definition at line 194 of file charactr.h.
unsigned int VitalValue::_current [private] |
Definition at line 245 of file charactr.h.
Referenced by consume(), current(), current_ones(), is_at_maximum(), maximum(), produce(), and Character::resurrect().
unsigned int VitalValue::_maximum [private] |
Definition at line 246 of file charactr.h.
Referenced by current(), current_ones(), is_at_maximum(), maximum(), maximum_ones(), and produce().
int VitalValue::_regenrate [private] |
Definition at line 247 of file charactr.h.
Referenced by regenrate().