3 #include "term/term-color-types.h"
7 enum class PlayerStunRank;
10 PlayerStun() = default;
11 virtual ~PlayerStun() = default;
13 static PlayerStunRank get_rank(short value);
14 static std::string_view get_stun_mes(PlayerStunRank stun_rank);
15 static short get_accumulation(int rank);
16 static int get_accumulation_rank(int total, int damage);
18 short current() const;
19 PlayerStunRank get_rank() const;
20 int get_magic_chance_penalty() const;
21 int get_item_chance_penalty() const;
22 short get_damage_penalty() const;
23 bool is_stunned() const;
24 bool is_knocked_out() const;
25 std::tuple<term_color_type, std::string_view> get_expr() const;
26 void set(short value);