OSDN Git Service

[Refactor] #2298 PlayerParalysisクラスを定義した
[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-hallucination.h"
5 #include "timed-effect/player-paralysis.h"
6 #include "timed-effect/player-stun.h"
7
8 TimedEffects::TimedEffects()
9     : player_cut(std::make_shared<PlayerCut>())
10     , player_stun(std::make_shared<PlayerStun>())
11     , player_confusion(std::make_shared<PlayerConfusion>())
12     , player_hallucination(std::make_shared<PlayerHallucination>())
13     , player_paralysis(std::make_shared<PlayerParalysis>())
14 {
15 }
16
17 std::shared_ptr<PlayerCut> TimedEffects::cut() const
18 {
19     return this->player_cut;
20 }
21
22 std::shared_ptr<PlayerStun> TimedEffects::stun() const
23 {
24     return this->player_stun;
25 }
26
27 std::shared_ptr<PlayerConfusion> TimedEffects::confusion() const
28 {
29     return this->player_confusion;
30 }
31
32 std::shared_ptr<PlayerHallucination> TimedEffects::hallucination() const
33 {
34     return this->player_hallucination;
35 }
36
37 std::shared_ptr<PlayerParalysis> TimedEffects::paralysis() const
38 {
39     return this->player_paralysis;
40 }