summaryrefslogtreecommitdiff
path: root/src/Game/Actor/AI/aiNPCAttack.h
blob: 9941efaf3f033a45e0d814e9604233bccd3b1ff0 (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
35
36
37
38
39
40
41
42
43
#pragma once

#include "KingSystem/ActorSystem/actAiAi.h"

namespace uking::ai {

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

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

protected:
    // static_param at offset 0x38
    const int* mActionBaseTime_s{};
    // static_param at offset 0x40
    const int* mActionTimePlay_s{};
    // static_param at offset 0x48
    const int* mActionRate_s{};
    // static_param at offset 0x50
    const int* mAttackRate_s{};
    // static_param at offset 0x58
    const int* mAttackModeTime_s{};
    // static_param at offset 0x60
    const int* mGuardModeTime_s{};
    // static_param at offset 0x68
    const int* mEnemyChanceTime_s{};
    // dynamic_param at offset 0x70
    float* mTerrorLevel_d{};
    // dynamic_param at offset 0x78
    bool* mIsBattleStart_d{};
    // dynamic_param at offset 0x80
    sead::Vector3f* mTargetPos_d{};
    // dynamic_param at offset 0x88
    ksys::act::BaseProcLink* mEnemyLink_d{};
};

}  // namespace uking::ai