OSDN Git Service

Merge branch 'macos-develop' into macos-3-0-0
[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-blindness.h"
10 #include "timed-effect/player-confusion.h"
11 #include "timed-effect/player-cut.h"
12 #include "timed-effect/player-deceleration.h"
13 #include "timed-effect/player-fear.h"
14 #include "timed-effect/player-hallucination.h"
15 #include "timed-effect/player-paralysis.h"
16 #include "timed-effect/player-poison.h"
17 #include "timed-effect/player-stun.h"
18
19 TimedEffects::TimedEffects()
20     : player_blindness(std::make_shared<PlayerBlindness>())
21     , player_confusion(std::make_shared<PlayerConfusion>())
22     , player_cut(std::make_shared<PlayerCut>())
23     , player_fear(std::make_shared<PlayerFear>())
24     , player_hallucination(std::make_shared<PlayerHallucination>())
25     , player_paralysis(std::make_shared<PlayerParalysis>())
26     , player_stun(std::make_shared<PlayerStun>())
27     , player_acceleration(std::make_shared<PlayerAcceleration>())
28     , player_deceleration(std::make_shared<PlayerDeceleration>())
29     , player_poison(std::make_shared<PlayerPoison>())
30 {
31 }
32
33 std::shared_ptr<PlayerBlindness> TimedEffects::blindness() const
34 {
35     return this->player_blindness;
36 }
37
38 std::shared_ptr<PlayerConfusion> TimedEffects::confusion() const
39 {
40     return this->player_confusion;
41 }
42
43 std::shared_ptr<PlayerCut> TimedEffects::cut() const
44 {
45     return this->player_cut;
46 }
47
48 std::shared_ptr<PlayerFear> TimedEffects::fear() const
49 {
50     return this->player_fear;
51 }
52
53 std::shared_ptr<PlayerHallucination> TimedEffects::hallucination() const
54 {
55     return this->player_hallucination;
56 }
57
58 std::shared_ptr<PlayerParalysis> TimedEffects::paralysis() const
59 {
60     return this->player_paralysis;
61 }
62
63 std::shared_ptr<PlayerStun> TimedEffects::stun() const
64 {
65     return this->player_stun;
66 }
67
68 std::shared_ptr<PlayerAcceleration> TimedEffects::acceleration() const
69 {
70     return this->player_acceleration;
71 }
72
73 std::shared_ptr<PlayerDeceleration> TimedEffects::deceleration() const
74 {
75     return this->player_deceleration;
76 }
77
78 std::shared_ptr<PlayerPoison> TimedEffects::poison() const
79 {
80     return this->player_poison;
81 }