OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #3569 from sikabane-works/release/3.0.0.88-alpha
[hengbandforosx/hengbandosx.git]
/
src
/
timed-effect
/
player-fear.cpp
1
#include "timed-effect/player-fear.h"
2
3
short PlayerFear::current() const
4
{
5
return this->fear;
6
}
7
8
bool PlayerFear::is_fearful() const
9
{
10
return this->fear > 0;
11
}
12
13
void PlayerFear::set(short value)
14
{
15
this->fear = value;
16
}
17
18
void PlayerFear::reset()
19
{
20
this->set(0);
21
}