1 #ifndef PLAYER_COMBAT_COMPONENT_H
2 #define PLAYER_COMBAT_COMPONENT_H
6 #include "../../attribute_manager.h"
7 #include "../../items/armor.h"
8 #include "../../map_log_factory.h"
10 #include "combat_component.h"
19 unsigned int attack_accumulator;
20 unsigned int regen_counter;
26 unsigned int meditate_counter;
27 bool is_resuscitating;
28 int resuscitate_counter;
32 ItemId weapon_id,
unsigned int current_hp,
34 Player& player,
float attack_speed);
44 Armor* unequip_helmet();
45 Armor* unequip_chest();
46 Armor* unequip_shield();
50 void regen(
unsigned int amount_hp,
unsigned int amount_mp);
51 void regen_hp(
unsigned int amount_hp);
52 void regen_mp(
unsigned int amount_mp);
53 void set_meditate(
bool meditating);
54 void resuscitate(
int delta_t);
56 void update(uint64_t delta_t)
override;
57 bool attack_ready()
const override;
59 nlohmann::json get_data()
const override;
60 nlohmann::json get_persist_data()
const;
63 #endif // PLAYER_COMBAT_COMPONENT_H