| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include "Library/LiveActor/LiveActor.h" |
| 4 | |
| 5 | #include "Util/IUseDimension.h" |
| 6 | |
| 7 | namespace al { |
| 8 | struct ActorInitInfo; |
| 9 | class HitSensor; |
| 10 | class MtxConnector; |
| 11 | class PlacementId; |
| 12 | class SensorMsg; |
| 13 | } // namespace al |
| 14 | |
| 15 | class ActorDimensionKeeper; |
| 16 | class CoinCollectHintState; |
| 17 | |
| 18 | class CoinCollect2D : public al::LiveActor, public IUseDimension { |
| 19 | public: |
| 20 | CoinCollect2D(const char* name); |
| 21 | |
| 22 | void init(const al::ActorInitInfo& initInfo) override; |
| 23 | void initAfterPlacement() override; |
| 24 | bool receiveMsg(const al::SensorMsg* message, al::HitSensor* other, |
| 25 | al::HitSensor* self) override; |
| 26 | void endClipped() override; |
| 27 | |
| 28 | ActorDimensionKeeper* getActorDimensionKeeper() const override { return mDimensionKeeper; } |
| 29 | |
| 30 | void appearHintEffect(); |
| 31 | void deleteHintEffect(); |
| 32 | void reappearHintEffect(); |
| 33 | bool isEnableHint() const; |
| 34 | |
| 35 | void exeWait(); |
| 36 | void exeWaitHint(); |
| 37 | void exeGot(); |
| 38 | |
| 39 | private: |
| 40 | CoinCollectHintState* mHintState = nullptr; |
| 41 | al::PlacementId* mPlacementId = nullptr; |
| 42 | al::MtxConnector* mMtxConnector = nullptr; |
| 43 | ActorDimensionKeeper* mDimensionKeeper = nullptr; |
| 44 | }; |
| 45 |