LeviLamina
Loading...
Searching...
No Matches
NearestAttackableTargetGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/legacy/ActorUniqueID.h"
7#include "mc/world/actor/ai/goal/target/TargetGoal.h"
8
9// auto generated forward declare list
10// clang-format off
11class Mob;
12struct MobDescriptor;
13struct Tick;
14// clang-format on
15
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mTargetID;
21 ::ll::TypedStorage<8, 8, ::MobDescriptor const*> mTargetDescriptor;
22 ::ll::TypedStorage<1, 1, bool> mReselectTargets;
23 ::ll::TypedStorage<8, 64, ::std::unordered_map<::MobDescriptor const*, ::Tick>> mTargetCooldowns;
24 ::ll::TypedStorage<4, 4, int> mAttackInterval;
25 ::ll::TypedStorage<4, 4, int> mScanInterval;
26 ::ll::TypedStorage<1, 1, bool> mSetPersistent;
27 ::ll::TypedStorage<4, 4, float> mTargetSearchHeight;
28 ::ll::TypedStorage<4, 4, float> mTargetInvisibleMultiplier;
29 ::ll::TypedStorage<4, 4, float> mTargetSneakVisibilityMultiplier;
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 // vIndex: 1
40 virtual bool canUse() /*override*/;
41
42 // vIndex: 2
43 virtual bool canContinueToUse() /*override*/;
44
45 // vIndex: 4
46 virtual void start() /*override*/;
47
48 // vIndex: 7
49 virtual void appendDebugInfo(::std::string& str) const /*override*/;
50
51 // vIndex: 11
52 virtual ::ActorUniqueID _findTarget(::MobDescriptor const** outMobDescriptor);
53
54 // vIndex: 0
55 virtual ~NearestAttackableTargetGoal() /*override*/;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCNAPI explicit NearestAttackableTargetGoal(::Mob& mob);
62
63 MCNAPI bool _canStartSearching();
64
65 MCNAPI bool _isTargetInCooldown(::MobDescriptor const& descriptor) const;
66
67 MCNAPI bool _selectTarget();
68
69 MCNAPI bool isTargetVisible(::Mob const& mob, float maxDistance, float maxHeight) const;
70 // NOLINTEND
71
72public:
73 // constructor thunks
74 // NOLINTBEGIN
75 MCNAPI void* $ctor(::Mob& mob);
76 // NOLINTEND
77
78public:
79 // destructor thunk
80 // NOLINTBEGIN
81 MCNAPI void $dtor();
82 // NOLINTEND
83
84public:
85 // virtual function thunks
86 // NOLINTBEGIN
87 MCNAPI bool $canUse();
88
89 MCNAPI bool $canContinueToUse();
90
91 MCNAPI void $start();
92
93 MCNAPI void $appendDebugInfo(::std::string& str) const;
94
95 MCNAPI ::ActorUniqueID $_findTarget(::MobDescriptor const** outMobDescriptor);
96 // NOLINTEND
97
98public:
99 // vftables
100 // NOLINTBEGIN
101 MCNAPI static void** $vftable();
102 // NOLINTEND
103};
Definition Mob.h:47
Definition NearestAttackableTargetGoal.h:16
static MCAPI void ** $vftable()
MCAPI::ActorUniqueID $_findTarget(::MobDescriptor const **outMobDescriptor)
MCAPI NearestAttackableTargetGoal(::Mob &mob)
MCAPI bool _isTargetInCooldown(::MobDescriptor const &descriptor) const
MCAPI void * $ctor(::Mob &mob)
MCAPI void $appendDebugInfo(::std::string &str) const
MCAPI bool isTargetVisible(::Mob const &mob, float maxDistance, float maxHeight) const
Definition TargetGoal.h:15
Definition MobDescriptor.h:5
Definition Tick.h:5