|
| 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) |
|
virtual void | die ()=0 |
|
virtual bool | is_alive () const =0 |
|
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 entity_type_t | get_type () const =0 |
|
virtual nlohmann::json | get_data () const =0 |
|
virtual void | update (uint64_t delta_t)=0 |
|
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 |
|
La documentación para esta clase fue generada a partir de los siguientes ficheros:
- /home/nicolas/Taller/TP FINAL - ARGENTUM/repo/server/game/entities/entity.h
- /home/nicolas/Taller/TP FINAL - ARGENTUM/repo/server/game/entities/entity.cpp