OSDN Git Service

[Refactor] #2299 PlayerFearクラスを定義した
[hengbandforosx/hengbandosx.git] / src / timed-effect / timed-effects.cpp
1 #include "timed-effect/timed-effects.h"
2 #include "timed-effect/player-confusion.h"
3 #include "timed-effect/player-cut.h"
4 #include "timed-effect/player-fear.h"
5 #include "timed-effect/player-hallucination.h"
6 #include "timed-effect/player-paralysis.h"
7 #include "timed-effect/player-stun.h"
8
9 TimedEffects::TimedEffects()
10     : player_confusion(std::make_shared<PlayerConfusion>())
11     , player_cut(std::make_shared<PlayerCut>())
12     , player_fear(std::make_shared<PlayerFear>())
13     , player_hallucination(std::make_shared<PlayerHallucination>())
14     , player_paralysis(std::make_shared<PlayerParalysis>())
15     , player_stun(std::make_shared<PlayerStun>())
16 {
17 }
18
19 std::shared_ptr<PlayerConfusion> TimedEffects::confusion() const
20 {
21     return this->player_confusion;
22 }
23
24 std::shared_ptr<PlayerCut> TimedEffects::cut() const
25 {
26     return this->player_cut;
27 }
28
29 std::shared_ptr<PlayerFear> TimedEffects::fear() const
30 {
31     return this->player_fear;
32 }
33
34 std::shared_ptr<PlayerHallucination> TimedEffects::hallucination() const
35 {
36     return this->player_hallucination;
37 }
38
39 std::shared_ptr<PlayerParalysis> TimedEffects::paralysis() const
40 {
41     return this->player_paralysis;
42 }
43
44 std::shared_ptr<PlayerStun> TimedEffects::stun() const
45 {
46     return this->player_stun;
47 }