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 // prevent constructor by default
39 TargetGoal& operator=(TargetGoal const&);
40 TargetGoal(TargetGoal const&);
41 TargetGoal();
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46 virtual bool isTargetGoal() const /*override*/;
47
48 virtual bool canContinueToUse() /*override*/;
49
50 virtual void start() /*override*/;
51
52 virtual void stop() /*override*/;
53
54 virtual void tick() /*override*/;
55
56 virtual void appendDebugInfo(::std::string& str) const /*override*/;
57
58 virtual bool _canAttack(
59 ::Mob* testMob,
60 ::Actor* target,
61 bool allowInvulnerable,
62 bool mustSee,
63 ::MobDescriptor const** outDescriptorMatch
64 );
65
66 virtual ~TargetGoal() /*override*/;
67 // NOLINTEND
68
69public:
70 // member functions
71 // NOLINTBEGIN
72 MCAPI bool _canAttack(::Actor* target, bool allowInvulnerable, ::MobDescriptor const** outDescriptorMatch);
73
74 MCAPI bool _canReach(::Actor& target);
75
76 MCAPI bool
77 _matchesTargetTypes(::Mob* testMob, ::Actor* target, bool mustSee, ::MobDescriptor const** outDescriptorMatch);
78
79 MCAPI bool _withinRange(::Actor const& target);
80 // NOLINTEND
81
82public:
83 // destructor thunk
84 // NOLINTBEGIN
85 MCAPI void $dtor();
86 // NOLINTEND
87
88public:
89 // virtual function thunks
90 // NOLINTBEGIN
91 MCFOLD bool $isTargetGoal() const;
92
93 MCAPI bool $canContinueToUse();
94
95 MCAPI void $start();
96
97 MCFOLD void $stop();
98
99 MCAPI void $tick();
100
101 MCAPI void $appendDebugInfo(::std::string& str) const;
102
103 MCAPI bool $_canAttack(
104 ::Mob* testMob,
105 ::Actor* target,
106 bool allowInvulnerable,
107 bool mustSee,
108 ::MobDescriptor const** outDescriptorMatch
109 );
110
111
112 // NOLINTEND
113
114public:
115 // vftables
116 // NOLINTBEGIN
117 MCAPI static void** $vftable();
118 // NOLINTEND
119};
Definition Actor.h:105
Definition Goal.h:14
Definition Mob.h:50
Definition MobDescriptor.h:8