Argentum Online - Servidor
monster_combat_component.h
1 #ifndef MONSTER_COMBAT_COMPONENT_H
2 #define MONSTER_COMBAT_COMPONENT_H
3 
4 #include "../../../../include/types.h"
5 #include "../../map.h"
6 #include "combat_component.h"
7 
9  private:
10  unsigned int damage;
11  Map& map;
12  EntityId entity_id;
13  int attack_accumulator;
14  float attack_speed;
15 
16  public:
17  MonsterCombatComponent(unsigned int max_hp, unsigned int damage,
18  float attack_speed, Map& map, EntityId entity_id);
20 
21  attack_t attack() override;
22  attack_result_t receive_damage(attack_t attack) override;
23 
24  void update(uint64_t) override;
25 
26  /* Devuelve true si esta listo para atacar. */
27  bool attack_ready() const override;
28 };
29 
30 #endif // MONSTER_COMBAT_COMPONENT_H
MonsterCombatComponent
Definition: monster_combat_component.h:8
attack_result
Definition: combat_component.h:13
Map
Definition: map.h:47
attack
Definition: combat_component.h:8
CombatComponent
Definition: combat_component.h:19