|
| | Player (EntityId entity_id, nlohmann::json player_info, Map &map) |
| | Construye a un jugador. Más...
|
| |
| entity_type_t | get_type () const override |
| | Obtiene el tipo de la entidad: PLAYER. Más...
|
| |
| class_type_t | get_class_type () const |
| | Obtiene la clase del jugador. Más...
|
| |
| race_type_t | get_race_type () const |
| | Obtiene la raza del jugador. Más...
|
| |
| void | immobilize (int delta_t) |
| | Tiempo a inmovilizar al personaje en milisegundos. Más...
|
| |
| void | resuscitate (int delta_t) |
| | Tiempo a esperar para ser resucitado en milisegundos. Más...
|
| |
| void | regen_max () |
| | Regenera al maximo la vida y mana actuales. Más...
|
| |
|
void | teleport (position_t dest, int delta_t) |
| |
|
void | die () override |
| |
|
bool | is_alive () const override |
| |
| void | use (SlotId slot) |
| | Utilizar un item del inventario. Más...
|
| |
| void | use_ability (Entity *target, position_t target_pos) |
| | Usar la habilidad del arma equipada actualmente. Más...
|
| |
| void | add_item (Item *item) |
| | Agrega un item al inventario del jugador. En caso de que el item no entrase en el inventario, este será dropeado al piso. Más...
|
| |
| Item * | remove_item (SlotId slot, uint32_t amount) |
| | Quita un item del inventario del jugador. Más...
|
| |
| Gold * | remove_gold (uint32_t amount) |
| | Remueve amount del Gold actual. Más...
|
| |
| uint32_t | get_gold_stack () const |
| | Devuelve la cantidad de oro que tiene actualmente. Más...
|
| |
| void | unequip (SlotId slot) |
| | Desequipa de todo su armamento al jugador. Más...
|
| |
| Map & | get_map () |
| | Devuelve el mapa actual del player. Más...
|
| |
| void | set_movement (mov_action_t action, direction_t direction) |
| | Setea el movimiento del jugador. Más...
|
| |
| void | meditate (bool meditating) |
| | Empieza o detiene la regeneracion de mana al meditar. Más...
|
| |
| void | update (uint64_t delta_t) override |
| | Player update. Más...
|
| |
| bool | can_attack (Entity *attacked) const override |
| | Define si un jugador podrá o no atacar a otra entidad. Más...
|
| |
|
void | set_alive (bool alive) |
| |
| nlohmann::json | get_data () const override |
| | Obtiene los datos de la entidad para enviar al cliente. (caso PLAYER) Más...
|
| |
| nlohmann::json | get_inventory_data () const |
| | Obtiene la información del inventario del jugador. Más...
|
| |
| nlohmann::json | get_persist_data () const |
| | Obtener la información para persistir a un jugador. Más...
|
| |
|
| 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) |
| |
|
attack_result_t | attack (Entity *attacked) |
| |
|
attack_result_t | receive_damage (attack_t attack) |
| |
|
void | add_exp (int exp) |
| |
|
EntityId | get_id () const |
| |
La documentación para esta clase fue generada a partir de los siguientes ficheros: