Argentum Online - Servidor
Referencia de la Clase PlayerCombatComponent
Diagrama de herencias de PlayerCombatComponent
CombatComponent

Métodos públicos

 PlayerCombatComponent (ItemId helmet_id, ItemId armor_id, ItemId shield_id, ItemId weapon_id, unsigned int current_hp, unsigned int current_mp, stats_t stats, Player &player, float attack_speed)
 
std::vector< map_log_tuse_ability (Entity *target, position_t source, position_t dest)
 
attack_t attack () override
 
attack_result_t receive_damage (attack_t attack) override
 
Armorequip (Armor *armor)
 
Weaponequip (Weapon *weapon)
 
Armorunequip_helmet ()
 
Armorunequip_chest ()
 
Armorunequip_shield ()
 
Weaponunequip_weapon ()
 
void regen_max ()
 
void regen (unsigned int amount_hp, unsigned int amount_mp)
 
void regen_hp (unsigned int amount_hp)
 
void regen_mp (unsigned int amount_mp)
 
void set_meditate (bool meditating)
 
void resuscitate (int delta_t)
 
void update (uint64_t delta_t) override
 
bool attack_ready () const override
 
nlohmann::json get_data () const override
 
nlohmann::json get_persist_data () const
 
- Métodos públicos heredados desde CombatComponent
 CombatComponent (unsigned int max_hp, unsigned int max_mp)
 
 CombatComponent (unsigned int max_hp, unsigned int max_mp, unsigned int current_hp, unsigned int current_mp)
 
void reset_max (unsigned int max_hp, unsigned int max_mp)
 
unsigned int restore_hp (unsigned int hp)
 
bool can_spend_mp (unsigned int mp)
 
void spend_mp (unsigned int mp)
 
unsigned int get_max_hp () const
 
void set_max_mp (unsigned int mp)
 
void set_max_hp (unsigned int hp)
 

Otros miembros heredados

- Atributos protegidos heredados desde CombatComponent
unsigned int max_hp
 
unsigned int max_mp
 
unsigned int current_hp
 
unsigned int current_mp
 

La documentación para esta clase fue generada a partir de los siguientes ficheros: