LeviLamina
Loading...
Searching...
No Matches
PanicGoal.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/deps/shared_types/legacy/LevelSoundEvent.h"
8#include "mc/deps/shared_types/legacy/actor/ActorDamageCause.h"
9#include "mc/util/FloatRange.h"
10#include "mc/world/actor/ai/goal/Goal.h"
11#include "mc/world/level/Tick.h"
12
13// auto generated forward declare list
14// clang-format off
15class Mob;
16// clang-format on
17
18class PanicGoal : public ::Goal {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
23 ::ll::TypedStorage<8, 8, ::Mob*> mHurtByMob;
24 ::ll::TypedStorage<8, 24, ::std::vector<::SharedTypes::Legacy::ActorDamageCause>> mDamageCauses;
25 ::ll::TypedStorage<1, 1, bool> mIgnoreMobDamage;
26 ::ll::TypedStorage<1, 1, bool> mPanicOnAllCauses;
27 ::ll::TypedStorage<1, 1, bool> mForceUse;
28 ::ll::TypedStorage<1, 1, bool> mPreferWater;
29 ::ll::TypedStorage<1, 1, bool> mCanTeleportToOwner;
30 ::ll::TypedStorage<4, 4, float> mSpeedMultipler;
31 ::ll::TypedStorage<4, 12, ::Vec3> mTargetPosition;
32 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::LevelSoundEvent> mSoundEvent;
33 ::ll::TypedStorage<4, 8, ::FloatRange> mSoundIntervalRange;
34 ::ll::TypedStorage<8, 8, ::Tick> mNextSoundEventTick;
35 ::ll::TypedStorage<8, 8, ::Tick> mNextNavigationTick;
36 // NOLINTEND
37
38public:
39 // prevent constructor by default
40 PanicGoal& operator=(PanicGoal const&);
41 PanicGoal(PanicGoal const&);
42 PanicGoal();
43
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 virtual bool canUse() /*override*/;
48
49 virtual void start() /*override*/;
50
51 virtual void stop() /*override*/;
52
53 virtual bool canContinueToUse() /*override*/;
54
55 virtual void tick() /*override*/;
56
57 virtual void appendDebugInfo(::std::string& str) const /*override*/;
58
59 virtual ~PanicGoal() /*override*/ = default;
60 // NOLINTEND
61
62public:
63 // member functions
64 // NOLINTBEGIN
65 MCAPI PanicGoal(
66 ::Mob& mob,
67 float speedMultiplier,
68 bool ignoreMobDamage,
69 ::SharedTypes::Legacy::LevelSoundEvent sound,
70 ::FloatRange soundIntervalRange,
71 bool forceUse,
72 bool preferWater,
73 ::std::vector<::SharedTypes::Legacy::ActorDamageCause> damageCauses
74 );
75
76 MCAPI ::std::optional<::Vec3> _findWaterPos(int xzDist, int yDist) const;
77 // NOLINTEND
78
79public:
80 // constructor thunks
81 // NOLINTBEGIN
82 MCAPI void* $ctor(
83 ::Mob& mob,
84 float speedMultiplier,
85 bool ignoreMobDamage,
86 ::SharedTypes::Legacy::LevelSoundEvent sound,
87 ::FloatRange soundIntervalRange,
88 bool forceUse,
89 bool preferWater,
90 ::std::vector<::SharedTypes::Legacy::ActorDamageCause> damageCauses
91 );
92 // NOLINTEND
93
94public:
95 // virtual function thunks
96 // NOLINTBEGIN
97 MCAPI bool $canUse();
98
99 MCAPI void $start();
100
101 MCAPI void $stop();
102
103 MCFOLD bool $canContinueToUse();
104
105 MCAPI void $tick();
106
107 MCAPI void $appendDebugInfo(::std::string& str) const;
108
109
110 // NOLINTEND
111
112public:
113 // vftables
114 // NOLINTBEGIN
115 MCNAPI static void** $vftable();
116 // NOLINTEND
117};
Definition Goal.h:14
Definition Mob.h:51
static MCAPI void ** $vftable()
Definition FloatRange.h:11