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