Argentum Online - Servidor
npc_combat_component.h
1 #ifndef NPC_COMBAT_COMPONENT_H
2 #define NPC_COMBAT_COMPONENT_H
3 
4 #include <exception>
5 
6 #include "../../../../include/types.h"
7 #include "combat_component.h"
8 
9 class CantAttackNpcException : public std::exception {
10  public:
11  const char *what() const throw();
12 };
13 
15  public:
18 
19  attack_t attack() override;
20  attack_result_t receive_damage(attack_t attack) override;
21 
22  void update(uint64_t) override;
23 
24  /* Devuelve true si esta listo para atacar. */
25  bool attack_ready() const override;
26 };
27 
28 #endif // NPC_COMBAT_COMPONENT_H
NpcCombatComponent
Definition: npc_combat_component.h:14
attack_result
Definition: combat_component.h:13
CantAttackNpcException
Definition: npc_combat_component.h:9
attack
Definition: combat_component.h:8
CombatComponent
Definition: combat_component.h:19