Debian Codegraph @

Sources/Jazz2/Actors/Environment/Checkpoint.h

raw
1 #pragma once
2
3 #include "../ActorBase.h"
4
5 namespace Jazz2::Actors::Environment
6 {
7 /** @brief Checkpoint */
8 class Checkpoint : public ActorBase
9 {
10 DEATH_RUNTIME_OBJECT(ActorBase);
11
12 public:
13 Checkpoint();
14
15 bool OnHandleCollision(std::shared_ptr<ActorBase> other) override;
16
17 static void Preload(const ActorActivationDetails& details);
18
19 protected:
20 Task<bool> OnActivatedAsync(const ActorActivationDetails& details) override;
21 void OnUpdateHitbox() override;
22
23 private:
24 std::uint8_t _theme;
25 bool _activated;
26 };
27 }