OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[Refactor] #1498 Defined decrease_chance()
[hengbandforosx/hengbandosx.git]
/
src
/
timed-effect
/
player-stun.h
1
#pragma once
2
3
enum class StunRank {
4
NONE = 0,
5
NORMAL = 1,
6
HARD = 2,
7
UNCONSCIOUS = 3,
8
};
9
10
class PlayerStun {
11
public:
12
PlayerStun() = default;
13
virtual ~PlayerStun() = default;
14
15
short current() const;
16
StunRank get_rank() const;
17
StunRank get_rank(short value) const;
18
int decrease_chance() const;
19
void set(short value);
20
21
private:
22
short stun = 0;
23
};