Line data Source code
1 : #ifndef __BODY_PRONE_MOVE_ANIMATION_STATE_HPP__
2 : #define __BODY_PRONE_MOVE_ANIMATION_STATE_HPP__
3 :
4 : #include "core/animations/AnimationState.hpp"
5 :
6 : #include "core/animations/AnimationData.hpp"
7 :
8 : namespace Soldank
9 : {
10 : struct Soldier;
11 :
12 : class BodyProneMoveAnimationState final : public Soldank::AnimationState
13 : {
14 : public:
15 : BodyProneMoveAnimationState(const AnimationDataManager& animation_data_manager);
16 0 : ~BodyProneMoveAnimationState() override = default;
17 :
18 : std::optional<std::shared_ptr<AnimationState>> HandleInput(Soldier& soldier) final;
19 :
20 : private:
21 0 : bool IsSoldierShootingPossible(const Soldier& /*soldier*/) const final { return true; }
22 0 : bool IsSoldierFlagThrowingPossible(const Soldier& /*soldier*/) const final { return true; };
23 :
24 : const AnimationDataManager& animation_data_manager_;
25 : };
26 : } // namespace Soldank
27 :
28 : #endif
|