OSDN Git Service

[Refactor] #2298 PlayerParalysisクラスを定義した
[hengbandforosx/hengbandosx.git] / src / timed-effect / timed-effects.h
1 #pragma once
2
3 #include <memory>
4
5 class PlayerConfusion;
6 class PlayerHallucination;
7 class PlayerParalysis;
8 class PlayerCut;
9 class PlayerStun;
10 class TimedEffects {
11 public:
12     TimedEffects();
13     virtual ~TimedEffects() = default;
14
15     std::shared_ptr<PlayerCut> cut() const;
16     std::shared_ptr<PlayerStun> stun() const;
17     std::shared_ptr<PlayerConfusion> confusion() const;
18     std::shared_ptr<PlayerHallucination> hallucination() const;
19     std::shared_ptr<PlayerParalysis> paralysis() const;
20
21 private:
22     std::shared_ptr<PlayerCut> player_cut;
23     std::shared_ptr<PlayerStun> player_stun;
24     std::shared_ptr<PlayerConfusion> player_confusion;
25     std::shared_ptr<PlayerHallucination> player_hallucination;
26     std::shared_ptr<PlayerParalysis> player_paralysis;
27 };