OSDN Git Service

2cad2cab0c180ab36dabc46ed40d432e16e83f53
[hengbandforosx/hengbandosx.git] / src / timed-effect / timed-effects.cpp
1 /*!
2  * @brief プレイヤーの時限効果を表すオブジェクト群を保持する
3  * @date 2022/08/05
4  * @author Hourier
5  */
6
7 #include "timed-effect/timed-effects.h"
8 #include "timed-effect/player-acceleration.h"
9 #include "timed-effect/player-confusion.h"
10 #include "timed-effect/player-cut.h"
11 #include "timed-effect/player-deceleration.h"
12 #include "timed-effect/player-fear.h"
13 #include "timed-effect/player-hallucination.h"
14 #include "timed-effect/player-paralysis.h"
15 #include "timed-effect/player-stun.h"
16
17 TimedEffects::TimedEffects()
18     : player_confusion(std::make_shared<PlayerConfusion>())
19     , player_cut(std::make_shared<PlayerCut>())
20     , player_fear(std::make_shared<PlayerFear>())
21     , player_hallucination(std::make_shared<PlayerHallucination>())
22     , player_paralysis(std::make_shared<PlayerParalysis>())
23     , player_stun(std::make_shared<PlayerStun>())
24     , player_acceleration(std::make_shared<PlayerAcceleration>())
25     , player_deceleration(std::make_shared<PlayerDeceleration>())
26 {
27 }
28
29 std::shared_ptr<PlayerConfusion> TimedEffects::confusion() const
30 {
31     return this->player_confusion;
32 }
33
34 std::shared_ptr<PlayerCut> TimedEffects::cut() const
35 {
36     return this->player_cut;
37 }
38
39 std::shared_ptr<PlayerFear> TimedEffects::fear() const
40 {
41     return this->player_fear;
42 }
43
44 std::shared_ptr<PlayerHallucination> TimedEffects::hallucination() const
45 {
46     return this->player_hallucination;
47 }
48
49 std::shared_ptr<PlayerParalysis> TimedEffects::paralysis() const
50 {
51     return this->player_paralysis;
52 }
53
54 std::shared_ptr<PlayerStun> TimedEffects::stun() const
55 {
56     return this->player_stun;
57 }
58
59 std::shared_ptr<PlayerAcceleration> TimedEffects::acceleration() const
60 {
61     return this->player_acceleration;
62 }
63
64 std::shared_ptr<PlayerDeceleration> TimedEffects::deceleration() const
65 {
66     return this->player_deceleration;
67 }