LeviLamina
Loading...
Searching...
No Matches
TemptBaseGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec2.h"
7#include "mc/deps/core/math/Vec3.h"
8#include "mc/deps/shared_types/legacy/LevelSoundEvent.h"
9#include "mc/util/FloatRange.h"
10#include "mc/world/actor/ActorDefinitionTrigger.h"
11#include "mc/world/actor/TempEPtr.h"
12#include "mc/world/actor/ai/goal/BaseGoal.h"
13#include "mc/world/level/Tick.h"
14
15// auto generated forward declare list
16// clang-format off
17class ItemDescriptor;
18class Mob;
19class Player;
20struct GoalId;
21// clang-format on
22
23class TemptBaseGoal : public ::BaseGoal {
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
28 ::ll::TypedStorage<8, 40, ::TempEPtr<::Player>> mPlayer;
29 ::ll::TypedStorage<4, 4, float> mSpeed;
30 ::ll::TypedStorage<1, 1, bool> mOldAvoidWater;
31 ::ll::TypedStorage<1, 1, bool> mCanTemptVertically;
32 ::ll::TypedStorage<4, 12, ::Vec3> mMobPlayerDelta;
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, 104, ::ActorDefinitionTrigger> mOnStartEvent;
37 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnEndEvent;
38 ::ll::TypedStorage<4, 4, int const> COOLDOWN_TICKS;
39 ::ll::TypedStorage<1, 1, bool> mCanGetScared;
40 ::ll::TypedStorage<4, 4, int> mCooldown;
41 ::ll::TypedStorage<1, 1, bool> mCanMove;
42 ::ll::TypedStorage<4, 4, float> mTemptDistance;
43 ::ll::TypedStorage<4, 4, float> mStopDistance;
44 ::ll::TypedStorage<4, 12, ::Vec3> mOldPlayerPosition;
45 ::ll::TypedStorage<4, 8, ::Vec2> mOldPlayerRotation;
46 ::ll::TypedStorage<1, 1, bool> mCanTemptWhileRidden;
47 ::ll::TypedStorage<8, 24, ::std::vector<::ItemDescriptor>> mItems;
48 // NOLINTEND
49
50public:
51 // prevent constructor by default
52 TemptBaseGoal& operator=(TemptBaseGoal const&);
53 TemptBaseGoal(TemptBaseGoal const&);
54 TemptBaseGoal();
55
56public:
57 // virtual functions
58 // NOLINTBEGIN
59 virtual bool canUse() /*override*/;
60
61 virtual bool canContinueToUse() /*override*/;
62
63 virtual void start() /*override*/;
64
65 virtual void stop() /*override*/;
66
67 virtual void tick() /*override*/;
68
69 virtual void updateMovement() = 0;
70
71 virtual void stopMovement() = 0;
72
73 virtual ~TemptBaseGoal() /*override*/;
74 // NOLINTEND
75
76public:
77 // member functions
78 // NOLINTBEGIN
79 MCAPI TemptBaseGoal(
80 ::Mob& mob,
81 ::std::string name,
82 ::GoalId const& goalId,
83 float speed,
84 ::std::vector<::ItemDescriptor> const& itemList,
85 ::SharedTypes::Legacy::LevelSoundEvent sound,
86 ::FloatRange soundIntervalRange,
87 bool canGetScared,
88 float temptDistance,
89 float stopDistance,
90 bool canTemptVertically,
91 bool canTemptWhileRidden,
92 ::ActorDefinitionTrigger const& onStartEvent,
93 ::ActorDefinitionTrigger const& onEndEvent
94 );
95 // NOLINTEND
96
97public:
98 // constructor thunks
99 // NOLINTBEGIN
100 MCAPI void* $ctor(
101 ::Mob& mob,
102 ::std::string name,
103 ::GoalId const& goalId,
104 float speed,
105 ::std::vector<::ItemDescriptor> const& itemList,
106 ::SharedTypes::Legacy::LevelSoundEvent sound,
107 ::FloatRange soundIntervalRange,
108 bool canGetScared,
109 float temptDistance,
110 float stopDistance,
111 bool canTemptVertically,
112 bool canTemptWhileRidden,
113 ::ActorDefinitionTrigger const& onStartEvent,
114 ::ActorDefinitionTrigger const& onEndEvent
115 );
116 // NOLINTEND
117
118public:
119 // destructor thunk
120 // NOLINTBEGIN
121 MCAPI void $dtor();
122 // NOLINTEND
123
124public:
125 // virtual function thunks
126 // NOLINTBEGIN
127 MCAPI bool $canUse();
128
129 MCAPI bool $canContinueToUse();
130
131 MCAPI void $start();
132
133 MCAPI void $stop();
134
135 MCAPI void $tick();
136
137
138 // NOLINTEND
139
140public:
141 // vftables
142 // NOLINTBEGIN
143 MCNAPI static void** $vftable();
144 // NOLINTEND
145};
Definition ActorDefinitionTrigger.h:14
Definition BaseGoal.h:12
Definition ItemDescriptor.h:25
Definition Mob.h:56
Definition Player.h:129
static MCAPI void ** $vftable()
Definition FloatRange.h:10
Definition GoalId.h:5