OSDN Git Service

[Refactor] #2521 PlayerAcceleration クラスにある不要メソッドを削除し、異常な引数に対する例外送出処理を追加した
[hengbandforosx/hengbandosx.git] / src / timed-effect / player-confusion.cpp
1 #include "timed-effect/player-confusion.h"
2
3 short PlayerConfusion::current() const
4 {
5     return this->confusion;
6 }
7
8 bool PlayerConfusion::is_confused() const
9 {
10     return this->confusion > 0;
11 }
12
13 void PlayerConfusion::set(short value)
14 {
15     this->confusion = value;
16 }
17
18 void PlayerConfusion::reset()
19 {
20     this->set(0);
21 }