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