Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
PlayGoal.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/world/actor/TempEPtr.h"
8#include "mc/world/actor/ai/goal/BaseGoal.h"
9
10// auto generated forward declare list
11// clang-format off
12class Mob;
13struct MobDescriptor;
14// clang-format on
15
16class PlayGoal : public ::BaseGoal {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<4, 4, float> mSpeedModifier;
21 ::ll::TypedStorage<4, 4, int> mMaxPlayDurationTicks;
22 ::ll::TypedStorage<4, 4, float> mChanceToStart;
23 ::ll::TypedStorage<8, 24, ::std::vector<::MobDescriptor>> mFriendTypes;
24 ::ll::TypedStorage<4, 12, ::Vec3> mFriendSearchArea;
25 ::ll::TypedStorage<4, 4, int> mRandomPosSearchRange;
26 ::ll::TypedStorage<4, 4, int> mRandomPosSearchHeight;
27 ::ll::TypedStorage<4, 4, int> mFollowDistanceInBlocksSquared;
28 ::ll::TypedStorage<4, 4, int> mCurrentPlayDurationTicks;
29 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
30 ::ll::TypedStorage<8, 40, ::TempEPtr<::Mob>> mFollowFriend;
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 PlayGoal& operator=(PlayGoal const&);
36 PlayGoal(PlayGoal const&);
37 PlayGoal();
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 virtual bool canUse() /*override*/;
43
44 virtual bool canContinueToUse() /*override*/;
45
46 virtual void start() /*override*/;
47
48 virtual void stop() /*override*/;
49
50 virtual void tick() /*override*/;
51
52 virtual void appendDebugInfo(::std::string& str) const /*override*/;
53 // NOLINTEND
54
55public:
56 // virtual function thunks
57 // NOLINTBEGIN
58 MCNAPI bool $canUse();
59
60 MCNAPI bool $canContinueToUse();
61
62 MCNAPI void $start();
63
64 MCNAPI void $stop();
65
66 MCNAPI void $tick();
67
68 MCNAPI void $appendDebugInfo(::std::string& str) const;
69
70
71 // NOLINTEND
72
73public:
74 // vftables
75 // NOLINTBEGIN
76 MCNAPI static void** $vftable();
77 // NOLINTEND
78};
Definition BaseGoal.h:12
Definition Mob.h:58
MCAPI void $appendDebugInfo(::std::string &str) const
MCAPI void $stop()
MCAPI void $tick()
MCAPI bool $canUse()
static MCAPI void ** $vftable()
MCAPI void $start()
MCAPI bool $canContinueToUse()
Definition MobDescriptor.h:8