LeviLamina
Loading...
Searching...
No Matches
TargetGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/ai/goal/Goal.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class Mob;
12struct MobDescriptor;
13// clang-format on
14
15class TargetGoal : public ::Goal {
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
20 ::ll::TypedStorage<1, 1, bool> mAttackOwner;
21 ::ll::TypedStorage<1, 1, bool> mMustReach;
22 ::ll::TypedStorage<1, 1, bool> mGlobalMustSee;
23 ::ll::TypedStorage<1, 1, bool> mTargetMustSee;
24 ::ll::TypedStorage<4, 4, int> mTargetMustSeeForgetTicks;
25 ::ll::TypedStorage<1, 1, bool> mFilterFailure;
26 ::ll::TypedStorage<4, 4, int> mFilterFailureTicks;
27 ::ll::TypedStorage<4, 4, int> mGlobalMustSeeForgetTicks;
28 ::ll::TypedStorage<4, 4, int> mPersistTargetTicks;
29 ::ll::TypedStorage<4, 4, int> mReachCache;
30 ::ll::TypedStorage<4, 4, int> mReachCacheTime;
31 ::ll::TypedStorage<4, 4, int> mUnseenTicks;
32 ::ll::TypedStorage<4, 4, float> mWithinDefault;
33 ::ll::TypedStorage<1, 1, bool> mReevaluateTarget;
34 ::ll::TypedStorage<8, 24, ::std::vector<::MobDescriptor>> mTargetTypes;
35 // NOLINTEND
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 // vIndex: 8
41 virtual bool isTargetGoal() const /*override*/;
42
43 // vIndex: 2
44 virtual bool canContinueToUse() /*override*/;
45
46 // vIndex: 4
47 virtual void start() /*override*/;
48
49 // vIndex: 5
50 virtual void stop() /*override*/;
51
52 // vIndex: 6
53 virtual void tick() /*override*/;
54
55 // vIndex: 7
56 virtual void appendDebugInfo(::std::string& str) const /*override*/;
57
58 // vIndex: 10
59 virtual bool _canAttack(
60 ::Mob* testMob,
61 ::Actor* target,
62 bool allowInvulnerable,
63 bool mustSee,
64 ::MobDescriptor const** outDescriptorMatch
65 );
66
67 // vIndex: 0
68 virtual ~TargetGoal() /*override*/;
69 // NOLINTEND
70
71public:
72 // member functions
73 // NOLINTBEGIN
74 MCAPI bool _canAttack(::Actor* target, bool outDescriptorMatch, ::MobDescriptor const** allowInvulnerable);
75
76 MCAPI bool _canReach(::Actor& target);
77
78 MCAPI bool
79 _matchesTargetTypes(::Mob* testMob, ::Actor* target, bool mustSee, ::MobDescriptor const** outDescriptorMatch);
80
81 MCAPI bool _withinRange(::Actor const& target);
82 // NOLINTEND
83
84public:
85 // destructor thunk
86 // NOLINTBEGIN
87 MCAPI void $dtor();
88 // NOLINTEND
89
90public:
91 // virtual function thunks
92 // NOLINTBEGIN
93 MCFOLD bool $isTargetGoal() const;
94
95 MCAPI bool $canContinueToUse();
96
97 MCAPI void $start();
98
99 MCFOLD void $stop();
100
101 MCAPI void $tick();
102
103 MCAPI void $appendDebugInfo(::std::string& str) const;
104
105 MCAPI bool $_canAttack(
106 ::Mob* testMob,
107 ::Actor* target,
108 bool allowInvulnerable,
109 bool mustSee,
110 ::MobDescriptor const** outDescriptorMatch
111 );
112 // NOLINTEND
113
114public:
115 // vftables
116 // NOLINTBEGIN
117 MCAPI static void** $vftable();
118 // NOLINTEND
119};
Definition Actor.h:104
Definition Goal.h:14
Definition Mob.h:47
Definition TargetGoal.h:15
Definition MobDescriptor.h:5