2 * @brief プレイヤーの盲目ステータス変更と判定
7 #include "timed-effect/player-blindness.h"
8 #include "system/angband-exceptions.h"
10 short PlayerBlindness::current() const
12 return this->blindness;
15 bool PlayerBlindness::is_blind() const
17 return this->blindness > 0;
20 void PlayerBlindness::set(short value)
23 THROW_EXCEPTION(std::invalid_argument, "Negative value can't be set in the player's blindness parameter!");
26 this->blindness = value;
29 void PlayerBlindness::reset()