LeviLamina
Loading...
Searching...
No Matches
RangedAttackGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/TempEPtr.h"
7#include "mc/world/actor/ai/goal/Goal.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Mob;
13class Vec3;
14// clang-format on
15
16class RangedAttackGoal : public ::Goal {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
21 ::ll::TypedStorage<8, 40, ::TempEPtr<::Actor>> mTarget;
22 ::ll::TypedStorage<1, 1, bool> mIsChargedAttack;
23 ::ll::TypedStorage<1, 1, bool> mUsingChargedItem;
24 ::ll::TypedStorage<1, 1, bool> mSetPersistent;
25 ::ll::TypedStorage<1, 1, bool> mSwing;
26 ::ll::TypedStorage<4, 4, int> mReloadBurstTicks;
27 ::ll::TypedStorage<4, 4, int> mCanSeeTargetTicks;
28 ::ll::TypedStorage<4, 4, int> mBurstShotsLeft;
29 ::ll::TypedStorage<4, 4, int> mBurstTicks;
30 ::ll::TypedStorage<4, 4, int> mBurstCooldownTicks;
31 ::ll::TypedStorage<4, 4, int> mChargeTicks;
32 ::ll::TypedStorage<4, 4, int> mReloadTicksMin;
33 ::ll::TypedStorage<4, 4, int> mReloadTicksMax;
34 ::ll::TypedStorage<4, 4, int> mChargeReadyTicks;
35 ::ll::TypedStorage<4, 4, int> mChargeReloadTicks;
36 ::ll::TypedStorage<4, 4, int> mBurstShots;
37 ::ll::TypedStorage<4, 4, int> mTargetInSightTicks;
38 ::ll::TypedStorage<4, 4, float> mAttackRadius;
39 ::ll::TypedStorage<4, 4, float> mAttackRadiusMin;
40 ::ll::TypedStorage<4, 4, float> mAttackRadiusMinSq;
41 ::ll::TypedStorage<4, 4, float> mMaxRotationX;
42 ::ll::TypedStorage<4, 4, float> mMaxHeadRotationY;
43 ::ll::TypedStorage<4, 4, float> mRangedFov;
44 ::ll::TypedStorage<4, 4, float> mSpeedMultiplier;
45 // NOLINTEND
46
47public:
48 // virtual functions
49 // NOLINTBEGIN
50 // vIndex: 1
51 virtual bool canUse() /*override*/;
52
53 // vIndex: 2
54 virtual bool canContinueToUse() /*override*/;
55
56 // vIndex: 4
57 virtual void start() /*override*/;
58
59 // vIndex: 5
60 virtual void stop() /*override*/;
61
62 // vIndex: 6
63 virtual void tick() /*override*/;
64
65 // vIndex: 7
66 virtual void appendDebugInfo(::std::string& str) const /*override*/;
67
68 // vIndex: 0
69 virtual ~RangedAttackGoal() /*override*/ = default;
70 // NOLINTEND
71
72public:
73 // member functions
74 // NOLINTBEGIN
75 MCAPI void _dischargeCarriedItem();
76
77 MCAPI void
78 handleAttackBehavior(::Actor* lockedTarget, ::Vec3 const& lockedTargetPos, float targetDistanceSq, bool canSee);
79 // NOLINTEND
80
81public:
82 // destructor thunk
83 // NOLINTBEGIN
84
85 // NOLINTEND
86
87public:
88 // virtual function thunks
89 // NOLINTBEGIN
90 MCAPI bool $canUse();
91
92 MCAPI bool $canContinueToUse();
93
94 MCAPI void $start();
95
96 MCAPI void $stop();
97
98 MCAPI void $tick();
99
100 MCAPI void $appendDebugInfo(::std::string& str) const;
101 // NOLINTEND
102
103public:
104 // vftables
105 // NOLINTBEGIN
106 MCAPI static void** $vftable();
107 // NOLINTEND
108};
Definition Actor.h:104
Definition Goal.h:14
Definition Mob.h:47
Definition RangedAttackGoal.h:16
Definition Vec3.h:10