summaryrefslogtreecommitdiff
path: root/src/Game/Actor/AI/aiActorWaterDepthSelect.h
blob: 894d7ed02d543007b870f2acb05f521cb9a0121e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once

#include "KingSystem/ActorSystem/actAiAi.h"

namespace uking::ai {

class ActorWaterDepthSelect : public ksys::act::ai::Ai {
    SEAD_RTTI_OVERRIDE(ActorWaterDepthSelect, ksys::act::ai::Ai)
public:
    explicit ActorWaterDepthSelect(const InitArg& arg);
    ~ActorWaterDepthSelect() override;

    bool isFailed() const override;
    bool isChangeable() const override;
    bool isFinished() const override;
    bool init_(sead::Heap* heap) override;
    void enter_(ksys::act::ai::InlineParamPack* params) override;
    void calc_() override;
    void leave_() override;
    void loadParams_() override;

    bool isDeep() const;
    bool isUnderwater() const;

protected:
    // static_param at offset 0x38
    const float* mDeepDepth_s{};
    // static_param at offset 0x40
    const bool* mOnEnterOnly_s{};
    // static_param at offset 0x48
    const bool* mForceDeepChange_s{};
};

}  // namespace uking::ai