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

Métodos públicos

 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)
 
virtual attack_t attack ()=0
 
virtual attack_result_t receive_damage (attack_t raw_damage)=0
 
virtual void update (uint64_t)=0
 
unsigned int get_max_hp () const
 
virtual bool attack_ready () const =0
 
virtual nlohmann::json get_data () const
 
void set_max_mp (unsigned int mp)
 
void set_max_hp (unsigned int hp)
 

Atributos protegidos

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: