LeviLamina
Loading...
Searching...
No Matches
FollowOwnerGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/TempEPtr.h"
7#include "mc/world/actor/ai/goal/BaseGoal.h"
8
9// auto generated forward declare list
10// clang-format off
11class Mob;
13class Player;
14struct DimensionType;
15struct GoalId;
16// clang-format on
17
18class FollowOwnerGoal : public ::BaseGoal {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
23 ::ll::TypedStorage<8, 40, ::TempEPtr<::Mob>> mOwner;
24 ::ll::TypedStorage<4, 4, int> mTimeToRecalculatePath;
25 ::ll::TypedStorage<4, 4, float> mSpeed;
26 ::ll::TypedStorage<4, 4, float> mStartDistance;
27 ::ll::TypedStorage<4, 4, float> mStopDistance;
28 ::ll::TypedStorage<4, 4, float> mMaxDistance;
29 ::ll::TypedStorage<1, 1, bool> mOldAvoidWater;
30 ::ll::TypedStorage<1, 1, bool> mOldAvoidPortals;
31 ::ll::TypedStorage<1, 1, bool> mCanTeleport;
32 ::ll::TypedStorage<1, 1, bool> mIgnoreVibrations;
33 ::ll::TypedStorage<4, 4, int> mPostTeleportDistance;
34 ::ll::TypedStorage<1, 1, bool> mRandomizeAndCheckForClearanceWhenTeleporting;
35 ::ll::TypedStorage<1, 1, bool> mKeepFollowingAfterTeleporting;
36 // NOLINTEND
37
38public:
39 // prevent constructor by default
40 FollowOwnerGoal& operator=(FollowOwnerGoal const&);
41 FollowOwnerGoal(FollowOwnerGoal const&);
42 FollowOwnerGoal();
43
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 virtual bool canUse() /*override*/;
48
49 virtual bool canContinueToUse() /*override*/;
50
51 virtual void start() /*override*/;
52
53 virtual void stop() /*override*/;
54
55 virtual void tick() /*override*/;
56
57 virtual void appendDebugInfo(::std::string& str) const /*override*/;
58
59 virtual void
60 onPlayerDimensionChanged(::Player* player, ::DimensionType fromDimension, ::DimensionType toDimension) /*override*/;
61 // NOLINTEND
62
63public:
64 // member functions
65 // NOLINTBEGIN
66 MCAPI FollowOwnerGoal(::Mob& mob, ::std::string name, ::GoalId const& goalId);
67
68 MCAPI bool _canReachOwner(::Mob& owner, ::NavigationComponent& navigationComponent) const;
69
70 MCAPI void _tryToTeleport(::Mob& owner) const;
71 // NOLINTEND
72
73public:
74 // constructor thunks
75 // NOLINTBEGIN
76 MCAPI void* $ctor(::Mob& mob, ::std::string name, ::GoalId const& goalId);
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCAPI bool $canUse();
83
84 MCAPI bool $canContinueToUse();
85
86 MCAPI void $start();
87
88 MCAPI void $stop();
89
90 MCAPI void $tick();
91
92 MCAPI void $appendDebugInfo(::std::string& str) const;
93
94 MCAPI void $onPlayerDimensionChanged(::Player* player, ::DimensionType fromDimension, ::DimensionType toDimension);
95
96
97 // NOLINTEND
98
99public:
100 // vftables
101 // NOLINTBEGIN
102 MCNAPI static void** $vftable();
103 // NOLINTEND
104};
Definition BaseGoal.h:12
static MCAPI void ** $vftable()
Definition Mob.h:56
Definition NavigationComponent.h:18
Definition Player.h:129
Definition DimensionType.h:5
Definition GoalId.h:5