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
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
24 ::ll::TypedStorage<8, 40, ::TempEPtr<::Actor>> mTarget;
25 ::ll::TypedStorage<1, 1, bool> mAttackOnce;
26 ::ll::TypedStorage<1, 1, bool> mHasAttacked;
27 ::ll::TypedStorage<1, 1, bool> mRequireCompletePath;
28 ::ll::TypedStorage<1, 1, bool> mTrackTarget;
29 ::ll::TypedStorage<4, 4, int> mRandomStopInterval;
30 ::ll::TypedStorage<4, 4, int> mAttackTicks;
31 ::ll::TypedStorage<4, 4, int> mCooldownTicks;
32 ::ll::TypedStorage<4, 4, int> mMinPathTicks;
33 ::ll::TypedStorage<4, 4, int> mMaxPathTicks;
34 ::ll::TypedStorage<4, 4, int> mTicksToRecalculatePath;
35 ::ll::TypedStorage<4, 4, int> mPathFailTickIncrease;
36 ::ll::TypedStorage<4, 4, int> mInnerBoundaryTickIncrease;
37 ::ll::TypedStorage<4, 4, int> mOuterBoundaryTickIncrease;
38 ::ll::TypedStorage<4, 4, float> mPathInnerBoundarySq;
39 ::ll::TypedStorage<4, 4, float> mPathOuterBoundarySq;
40 ::ll::TypedStorage<4, 4, float> mMeleeFov;
41 ::ll::TypedStorage<4, 4, float> mMaxRotationX;
42 ::ll::TypedStorage<4, 4, float> mMaxHeadRotationY;
43 ::ll::TypedStorage<4, 4, float> mSpeedMultiplier;
44 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Path>> mPath;
45 ::ll::TypedStorage<4, 12, ::Vec3> mPathTarget;
46 ::ll::TypedStorage<4, 4, ::ActorCategory> mAttackTypes;
47 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnAttack;
48 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnKill;
49 ::ll::TypedStorage<1, 1, bool> mSetPersistent;
50 ::ll::TypedStorage<1, 1, bool> mCanSpreadOnFire;
51 // NOLINTEND
52
53public:
54 // prevent constructor by default
58
59public:
60 // virtual functions
61 // NOLINTBEGIN
62 // vIndex: 0
63 virtual ~MeleeAttackBaseGoal() /*override*/;
64
65 // vIndex: 1
66 virtual bool canUse() /*override*/;
67
68 // vIndex: 2
69 virtual bool canContinueToUse() /*override*/;
70
71 // vIndex: 4
72 virtual void start() /*override*/;
73
74 // vIndex: 5
75 virtual void stop() /*override*/;
76
77 // vIndex: 6
78 virtual void tick() = 0;
79
80 // vIndex: 10
81 virtual void _attemptMoveToTarget(::Actor& target);
82 // NOLINTEND
83
84public:
85 // member functions
86 // NOLINTBEGIN
87 MCNAPI explicit MeleeAttackBaseGoal(::Mob& mob);
88
89 MCNAPI void _attemptAttackTarget(::Actor& target, bool canReachTarget, bool hasLineOfSight);
90
91 MCNAPI void _attemptMoveToTargetPosition(::Actor& target, bool canReachTarget, float targetDistanceSq);
92
93 MCNAPI bool _inSunlight(::Actor const& actor) const;
94 // NOLINTEND
95
96public:
97 // constructor thunks
98 // NOLINTBEGIN
99 MCNAPI void* $ctor(::Mob& mob);
100 // NOLINTEND
101
102public:
103 // destructor thunk
104 // NOLINTBEGIN
105 MCNAPI void $dtor();
106 // NOLINTEND
107
108public:
109 // virtual function thunks
110 // NOLINTBEGIN
111 MCNAPI bool $canUse();
112
113 MCNAPI bool $canContinueToUse();
114
115 MCNAPI void $start();
116
117 MCNAPI void $stop();
118
119 MCNAPI void $_attemptMoveToTarget(::Actor& target);
120 // NOLINTEND
121
122public:
123 // vftables
124 // NOLINTBEGIN
125 MCNAPI static void** $vftable();
126 // NOLINTEND
127};
Definition Actor.h:103
Definition Goal.h:14
Definition MeleeAttackBaseGoal.h:19
MCAPI bool $canUse()
MCAPI void $_attemptMoveToTarget(::Actor &target)
static MCAPI void ** $vftable()
MCAPI MeleeAttackBaseGoal(::Mob &mob)
MCAPI bool _inSunlight(::Actor const &actor) const
MCAPI void _attemptMoveToTargetPosition(::Actor &target, bool canReachTarget, float targetDistanceSq)
MCAPI void $start()
MCAPI void $dtor()
MCAPI void _attemptAttackTarget(::Actor &target, bool canReachTarget, bool hasLineOfSight)
MCAPI bool $canContinueToUse()
MCAPI void * $ctor(::Mob &mob)
MCAPI void $stop()
Definition Mob.h:47
Definition Path.h:16