LeviLamina
Loading...
Searching...
No Matches
MeleeAttackGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/ai/goal/MeleeAttackBaseGoal.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class BaseGameVersion;
12class Mob;
13class Vec3;
14// clang-format on
15
17public:
18 // MeleeAttackGoal inner types define
19 using LineOfSightEvaluator = bool (*)(::Mob const&, ::Actor const&);
20
21 using AttackReachEvaluator =
22 bool (*)(::Mob const&, ::Vec3 const&, float const, float const, float const, float const, int const);
23
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<
28 8,
29 8,
30 bool (*)(::Mob const&, ::Vec3 const&, float const, float const, float const, float const, int const)>
31 mReachEvaluator;
32 ::ll::TypedStorage<8, 8, bool (*)(::Mob const&, ::Actor const&)> mLineOfSightEvaluator;
33 ::ll::TypedStorage<4, 4, float> mReachMultiplier;
34 // NOLINTEND
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 // vIndex: 0
40 virtual ~MeleeAttackGoal() /*override*/;
41
42 // vIndex: 6
43 virtual void tick() /*override*/;
44
45 // vIndex: 7
46 virtual void appendDebugInfo(::std::string& str) const /*override*/;
47 // NOLINTEND
48
49public:
50 // member functions
51 // NOLINTBEGIN
52 MCAPI explicit MeleeAttackGoal(::Mob& mob);
53
54 MCAPI float _getAttackReachSqr(::Actor const& target) const;
55 // NOLINTEND
56
57public:
58 // static functions
59 // NOLINTBEGIN
60 MCAPI static bool _canReachTarget(
61 ::Mob const& mob,
62 ::Vec3 const& targetPosition,
63 float attackReachSq,
64 float targetMinY,
65 float targetMaxY,
66 float targetDistanceSqXZ,
67 int attackTicks
68 );
69
70 MCAPI static bool _canReachTargetLegacy(
71 ::Mob const& mob,
72 ::Vec3 const& targetPosition,
73 float attackReachSq,
74 float targetMinY,
75 float targetMaxY,
76 float targetDistanceSqXZ,
77 int attackTicks
78 );
79
80 MCFOLD static bool _isTargetInLineOfSight(::Mob const& mob, ::Actor const& target);
81
82 MCAPI static bool _isTargetInLineOfSightLegacy(::Mob const& mob, ::Actor const& target);
83 // NOLINTEND
84
85public:
86 // static variables
87 // NOLINTBEGIN
88 MCAPI static ::BaseGameVersion const& min3DAttackVersion();
89
90 MCAPI static ::BaseGameVersion const& minHitThroughWallFixVersion();
91 // NOLINTEND
92
93public:
94 // constructor thunks
95 // NOLINTBEGIN
96 MCAPI void* $ctor(::Mob& mob);
97 // NOLINTEND
98
99public:
100 // destructor thunk
101 // NOLINTBEGIN
102 MCAPI void $dtor();
103 // NOLINTEND
104
105public:
106 // virtual function thunks
107 // NOLINTBEGIN
108 MCAPI void $tick();
109
110 MCAPI void $appendDebugInfo(::std::string& str) const;
111 // NOLINTEND
112
113public:
114 // vftables
115 // NOLINTBEGIN
116 MCAPI static void** $vftable();
117 // NOLINTEND
118};
Definition Actor.h:104
Definition BaseGameVersion.h:13
Definition MeleeAttackBaseGoal.h:19
Definition MeleeAttackGoal.h:16
Definition Mob.h:47
Definition Vec3.h:10