LeviLamina
Loading...
Searching...
No Matches
MeleeAttackBaseGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec3.h"
7#include "mc/world/actor/ActorCategory.h"
8#include "mc/world/actor/ActorDefinitionTrigger.h"
9#include "mc/world/actor/TempEPtr.h"
10#include "mc/world/actor/ai/goal/Goal.h"
11
12// auto generated forward declare list
13// clang-format off
14class Actor;
15class Mob;
16class Path;
17// clang-format on
18
19class MeleeAttackBaseGoal : public ::Goal {
20public:
21 // MeleeAttackBaseGoal inner types declare
22 // clang-format off
23 struct NavigationSettings;
24 // clang-format on
25
26 // MeleeAttackBaseGoal inner types define
28 public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Path>> mPath;
32 ::ll::TypedStorage<4, 4, int> mMinPathTicks;
33 ::ll::TypedStorage<4, 4, int> mMaxPathTicks;
34 ::ll::TypedStorage<4, 4, int> mPathFailTickIncrease;
35 ::ll::TypedStorage<4, 4, int> mInnerBoundaryTickIncrease;
36 ::ll::TypedStorage<4, 4, int> mOuterBoundaryTickIncrease;
37 ::ll::TypedStorage<4, 4, int> mTicksToRecalculatePath;
38 ::ll::TypedStorage<4, 4, float> mPathInnerBoundarySq;
39 ::ll::TypedStorage<4, 4, float> mPathOuterBoundarySq;
40 ::ll::TypedStorage<4, 4, float> mSpeedMultiplier;
41 ::ll::TypedStorage<1, 1, bool> mRequireCompletePath;
42 ::ll::TypedStorage<1, 1, bool> mTrackTarget;
43 ::ll::TypedStorage<1, 1, bool> mHijackMountNavigation;
44 // NOLINTEND
45
46 public:
47 // member functions
48 // NOLINTBEGIN
49 MCAPI ~NavigationSettings();
50 // NOLINTEND
51
52 public:
53 // destructor thunk
54 // NOLINTBEGIN
55 MCFOLD void $dtor();
56 // NOLINTEND
57 };
58
59public:
60 // member variables
61 // NOLINTBEGIN
62 ::ll::TypedStorage<8, 48, ::MeleeAttackBaseGoal::NavigationSettings> mNavigation;
63 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
64 ::ll::TypedStorage<8, 40, ::TempEPtr<::Actor>> mTarget;
65 ::ll::TypedStorage<4, 12, ::Vec3> mLastCachedTargetPosition;
66 ::ll::TypedStorage<4, 4, ::ActorCategory> mAttackTypes;
67 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnAttack;
68 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnKill;
69 ::ll::TypedStorage<4, 4, float> mMeleeFov;
70 ::ll::TypedStorage<4, 4, float> mMaxRotationX;
71 ::ll::TypedStorage<4, 4, float> mMaxHeadRotationY;
72 ::ll::TypedStorage<4, 4, int> mRandomStopInterval;
73 ::ll::TypedStorage<4, 4, int> mAttackTicks;
74 ::ll::TypedStorage<4, 4, int> mCooldownTicks;
75 ::ll::TypedStorage<1, 1, bool> mAttackOnce;
76 ::ll::TypedStorage<1, 1, bool> mHasAttacked;
77 ::ll::TypedStorage<1, 1, bool> mSetPersistent;
78 ::ll::TypedStorage<1, 1, bool> mCanSpreadOnFire;
79 // NOLINTEND
80
81public:
82 // prevent constructor by default
83 MeleeAttackBaseGoal& operator=(MeleeAttackBaseGoal const&);
84 MeleeAttackBaseGoal(MeleeAttackBaseGoal const&);
85 MeleeAttackBaseGoal();
86
87public:
88 // virtual functions
89 // NOLINTBEGIN
90 virtual ~MeleeAttackBaseGoal() /*override*/;
91
92 virtual bool canUse() /*override*/;
93
94 virtual bool canContinueToUse() /*override*/;
95
96 virtual void start() /*override*/;
97
98 virtual void stop() /*override*/;
99
100 virtual void tick() = 0;
101
102 virtual int getAttackTicksResetValue() const;
103 // NOLINTEND
104
105public:
106 // member functions
107 // NOLINTBEGIN
108 MCAPI explicit MeleeAttackBaseGoal(::Mob& mob);
109
110 MCAPI void _attemptAttackTarget(::Actor& target, bool canReachTarget, bool hasLineOfSight);
111
112 MCAPI void _attemptMoveToTargetPosition(::Actor const& target, bool canReachTarget, float targetDistanceSq);
113
114 MCAPI ::Mob& _getNavigatingMob() const;
115 // NOLINTEND
116
117public:
118 // constructor thunks
119 // NOLINTBEGIN
120 MCAPI void* $ctor(::Mob& mob);
121 // NOLINTEND
122
123public:
124 // destructor thunk
125 // NOLINTBEGIN
126 MCAPI void $dtor();
127 // NOLINTEND
128
129public:
130 // virtual function thunks
131 // NOLINTBEGIN
132 MCAPI bool $canUse();
133
134 MCAPI bool $canContinueToUse();
135
136 MCAPI void $start();
137
138 MCAPI void $stop();
139
140 MCFOLD int $getAttackTicksResetValue() const;
141
142
143 // NOLINTEND
144
145public:
146 // vftables
147 // NOLINTBEGIN
148 MCNAPI static void** $vftable();
149 // NOLINTEND
150};
Definition Actor.h:105
Definition Goal.h:14
static MCAPI void ** $vftable()
Definition Mob.h:50
Definition Path.h:16
Definition MeleeAttackBaseGoal.h:27