OSDN Git Service

Merge pull request #3569 from sikabane-works/release/3.0.0.88-alpha
[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 }