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/world/actor/ai/goal/target/TargetGoal.h"
7
8// auto generated forward declare list
9// clang-format off
10class Mob;
11struct ActorUniqueID;
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 // virtual functions
34 // NOLINTBEGIN
35 // vIndex: 1
36 virtual bool canUse() /*override*/;
37
38 // vIndex: 2
39 virtual bool canContinueToUse() /*override*/;
40
41 // vIndex: 4
42 virtual void start() /*override*/;
43
44 // vIndex: 7
45 virtual void appendDebugInfo(::std::string& str) const /*override*/;
46
47 // vIndex: 11
48 virtual ::ActorUniqueID _findTarget(::MobDescriptor const** outMobDescriptor);
49
50 // vIndex: 0
51 virtual ~NearestAttackableTargetGoal() /*override*/;
52 // NOLINTEND
53
54public:
55 // member functions
56 // NOLINTBEGIN
57 MCAPI explicit NearestAttackableTargetGoal(::Mob& mob);
58
59 MCAPI bool _isTargetInCooldown(::MobDescriptor const& descriptor) const;
60
61 MCAPI bool _selectTarget();
62
63 MCAPI bool isTargetVisible(::Mob const& mob, float maxDistance, float maxHeight) const;
64 // NOLINTEND
65
66public:
67 // constructor thunks
68 // NOLINTBEGIN
69 MCAPI void* $ctor(::Mob& mob);
70 // NOLINTEND
71
72public:
73 // destructor thunk
74 // NOLINTBEGIN
75 MCAPI void $dtor();
76 // NOLINTEND
77
78public:
79 // virtual function thunks
80 // NOLINTBEGIN
81 MCAPI bool $canUse();
82
83 MCAPI bool $canContinueToUse();
84
85 MCAPI void $start();
86
87 MCAPI void $appendDebugInfo(::std::string& str) const;
88
89 MCAPI ::ActorUniqueID $_findTarget(::MobDescriptor const** outMobDescriptor);
90 // NOLINTEND
91
92public:
93 // vftables
94 // NOLINTBEGIN
95 MCAPI static void** $vftable();
96 // NOLINTEND
97};
Definition Mob.h:47
Definition NearestAttackableTargetGoal.h:16
Definition TargetGoal.h:15
Definition ActorUniqueID.h:5
Definition MobDescriptor.h:5
Definition Tick.h:5