Argentum Online - Servidor
Referencia de la Clase Healer
Diagrama de herencias de Healer
Npc Entity

Métodos públicos

 Healer (EntityId entity_id, nlohmann::json npc_info, Map &map)
 
void heal (Player *player)
 Restablece la vida del jugador al maximo. En caso de que el jugador este muerto, no hace nada. Más...
 
void resuscitate (Player *player)
 Resucita al jugador luego de un breve tiempo, restableciendo la mana y vida de este, al maximo. Más...
 
- Métodos públicos heredados desde Npc
 Npc (EntityId entity_id, nlohmann::json npc_info, Map &map)
 
void die () override
 
bool is_alive () const override
 
entity_type_t get_type () const override
 
nlohmann::json get_data () const override
 
void update (uint64_t delta_t) override
 
npc_proffesion_t get_profession ()
 
Mapget_map ()
 
- Métodos públicos heredados desde Entity
 Entity (EntityId id, Map &map, const std::string &name, MovementComponent *movement_component, CombatComponent *combat_component, unsigned int current_level, unsigned int current_exp)
 
 Entity (EntityId id, Map &map, const std::string &name, unsigned int current_level, unsigned int current_exp)
 
unsigned int heal (unsigned int hp)
 
bool can_spend_mp (unsigned int amount)
 
void spend_mp (unsigned int amount)
 
std::string get_name () const
 
unsigned int get_level () const
 
unsigned int get_max_hp () const
 
virtual position_t get_facing_position (position_t position)
 
virtual bool can_attack (Entity *attacked) const
 
attack_result_t attack (Entity *attacked)
 
attack_result_t receive_damage (attack_t attack)
 
void add_exp (int exp)
 
EntityId get_id () const
 

Otros miembros heredados

- Atributos protegidos heredados desde Entity
const EntityId id
 
Mapmap
 
const std::string name
 
MovementComponentmovement_component
 
CombatComponentcombat_component
 
ExperienceComponent experience_component
 

Documentación de las funciones miembro

◆ heal()

void Healer::heal ( Player player)

Restablece la vida del jugador al maximo. En caso de que el jugador este muerto, no hace nada.

Parámetros
player

◆ resuscitate()

void Healer::resuscitate ( Player player)

Resucita al jugador luego de un breve tiempo, restableciendo la mana y vida de este, al maximo.

Parámetros
player

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