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