LeviLamina
Loading...
Searching...
No Matches
PathNavigation.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Actor;
8class BlockSource;
9class Mob;
11class Path;
12class Vec2;
13class Vec3;
15// clang-format on
16
18public:
19 // virtual functions
20 // NOLINTBEGIN
21 // vIndex: 0
22 virtual ~PathNavigation() = default;
23
24 // vIndex: 1
25 virtual void initializeInternal(::Mob& mob, ::NavigationDescription* description);
26
27 // vIndex: 2
28 virtual void tick(::NavigationComponent& parent, ::Mob& mob);
29
30 // vIndex: 3
31 virtual ::Vec3 getTempMobPos(::Mob const& mob) const;
32
33 // vIndex: 5
34 virtual ::std::unique_ptr<::Path> createPath(::NavigationComponent& parent, ::Mob& mob, ::Vec3 const& pos);
35
36 // vIndex: 4
37 virtual ::std::unique_ptr<::Path> createPath(::NavigationComponent& parent, ::Mob& mob, ::Actor const& target);
38
39 // vIndex: 8
40 virtual bool moveTo(::NavigationComponent& parent, ::Mob& mob, ::Vec3 const& pos, float speed);
41
42 // vIndex: 7
43 virtual bool moveTo(::NavigationComponent& parent, ::Mob& mob, ::Actor& target, float speed);
44
45 // vIndex: 6
46 virtual bool moveTo(::NavigationComponent& parent, ::Mob& mob, ::std::unique_ptr<::Path> newPath, float speed);
47
48 // vIndex: 9
49 virtual void stop(::NavigationComponent& parent, ::Mob& mob);
50
51 // vIndex: 10
52 virtual bool travel(::NavigationComponent& parent, ::Mob& mob, float& xa, float& ya, float& za);
53
54 // vIndex: 11
55 virtual bool canUpdatePath(::Mob const& mob) const;
56
57 // vIndex: 12
58 virtual void updatePath(::NavigationComponent& parent, ::Mob& mob);
59 // NOLINTEND
60
61public:
62 // member functions
63 // NOLINTBEGIN
64 MCAPI float _getHighestBlockHeight(::BlockSource& region, ::Mob& mob, ::Vec3 const& pos, ::Vec2 const& aabb) const;
65
66 MCAPI bool _isPositionOnlyInAir(::BlockSource const& region, ::Vec3 const& pos, ::Vec2 const& aabb) const;
67 // NOLINTEND
68
69public:
70 // destructor thunk
71 // NOLINTBEGIN
72
73 // NOLINTEND
74
75public:
76 // virtual function thunks
77 // NOLINTBEGIN
78 MCAPI void $initializeInternal(::Mob& mob, ::NavigationDescription* description);
79
80 MCAPI void $tick(::NavigationComponent& parent, ::Mob& mob);
81
82 MCAPI ::Vec3 $getTempMobPos(::Mob const& mob) const;
83
84 MCAPI ::std::unique_ptr<::Path> $createPath(::NavigationComponent& parent, ::Mob& mob, ::Vec3 const& pos);
85
86 MCFOLD ::std::unique_ptr<::Path> $createPath(::NavigationComponent& parent, ::Mob& mob, ::Actor const& target);
87
88 MCAPI bool $moveTo(::NavigationComponent& parent, ::Mob& mob, ::Vec3 const& pos, float speed);
89
90 MCAPI bool $moveTo(::NavigationComponent& parent, ::Mob& mob, ::Actor& target, float speed);
91
92 MCAPI bool $moveTo(::NavigationComponent& parent, ::Mob& mob, ::std::unique_ptr<::Path> newPath, float speed);
93
94 MCFOLD void $stop(::NavigationComponent& parent, ::Mob& mob);
95
96 MCFOLD bool $travel(::NavigationComponent& parent, ::Mob& mob, float& xa, float& ya, float& za);
97
98 MCAPI bool $canUpdatePath(::Mob const& mob) const;
99
100 MCAPI void $updatePath(::NavigationComponent& parent, ::Mob& mob);
101 // NOLINTEND
102
103public:
104 // vftables
105 // NOLINTBEGIN
106 MCAPI static void** $vftable();
107 // NOLINTEND
108};
Definition Actor.h:104
Definition BlockSource.h:67
Definition Mob.h:47
Definition NavigationComponent.h:22
Definition PathNavigation.h:17
Definition Path.h:16
Definition Vec2.h:5
Definition Vec3.h:10
Definition NavigationDescription.h:13