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 MCNAPI float _getHighestBlockHeight(::BlockSource& region, ::Mob& mob, ::Vec3 const& pos, ::Vec2 const& aabb) const;
65
66 MCNAPI bool _isPositionOnlyInAir(::BlockSource const& region, ::Vec3 const& pos, ::Vec2 const& aabb) const;
67 // NOLINTEND
68
69public:
70 // virtual function thunks
71 // NOLINTBEGIN
72 MCNAPI void $initializeInternal(::Mob& mob, ::NavigationDescription* description);
73
74 MCNAPI void $tick(::NavigationComponent& parent, ::Mob& mob);
75
76 MCNAPI ::Vec3 $getTempMobPos(::Mob const& mob) const;
77
78 MCNAPI ::std::unique_ptr<::Path> $createPath(::NavigationComponent& parent, ::Mob& mob, ::Vec3 const& pos);
79
80 MCNAPI ::std::unique_ptr<::Path> $createPath(::NavigationComponent& parent, ::Mob& mob, ::Actor const& target);
81
82 MCNAPI bool $moveTo(::NavigationComponent& parent, ::Mob& mob, ::Vec3 const& pos, float speed);
83
84 MCNAPI bool $moveTo(::NavigationComponent& parent, ::Mob& mob, ::Actor& target, float speed);
85
86 MCNAPI bool $moveTo(::NavigationComponent& parent, ::Mob& mob, ::std::unique_ptr<::Path> newPath, float speed);
87
88 MCNAPI void $stop(::NavigationComponent& parent, ::Mob& mob);
89
90 MCNAPI bool $travel(::NavigationComponent& parent, ::Mob& mob, float& xa, float& ya, float& za);
91
92 MCNAPI bool $canUpdatePath(::Mob const& mob) const;
93
94 MCNAPI void $updatePath(::NavigationComponent& parent, ::Mob& mob);
95 // NOLINTEND
96
97public:
98 // vftables
99 // NOLINTBEGIN
100 MCNAPI static void** $vftable();
101 // NOLINTEND
102};
Definition Actor.h:103
Definition BlockSource.h:67
Definition Mob.h:47
Definition NavigationComponent.h:22
Definition PathNavigation.h:17
MCAPI void $updatePath(::NavigationComponent &parent, ::Mob &mob)
MCAPI::Vec3 $getTempMobPos(::Mob const &mob) const
MCAPI void $stop(::NavigationComponent &parent, ::Mob &mob)
MCAPI bool $moveTo(::NavigationComponent &parent, ::Mob &mob, ::Vec3 const &pos, float speed)
MCAPI bool $moveTo(::NavigationComponent &parent, ::Mob &mob, ::std::unique_ptr<::Path > newPath, float speed)
MCAPI void $initializeInternal(::Mob &mob, ::NavigationDescription *description)
MCAPI bool _isPositionOnlyInAir(::BlockSource const &region, ::Vec3 const &pos, ::Vec2 const &aabb) const
static MCAPI void ** $vftable()
MCAPI float _getHighestBlockHeight(::BlockSource &region, ::Mob &mob, ::Vec3 const &pos, ::Vec2 const &aabb) const
MCAPI bool $travel(::NavigationComponent &parent, ::Mob &mob, float &xa, float &ya, float &za)
MCAPI void $tick(::NavigationComponent &parent, ::Mob &mob)
MCAPI bool $canUpdatePath(::Mob const &mob) const
MCAPI ::std::unique_ptr<::Path > $createPath(::NavigationComponent &parent, ::Mob &mob, ::Vec3 const &pos)
MCAPI ::std::unique_ptr<::Path > $createPath(::NavigationComponent &parent, ::Mob &mob, ::Actor const &target)
MCAPI bool $moveTo(::NavigationComponent &parent, ::Mob &mob, ::Actor &target, float speed)
Definition Path.h:16
Definition Vec2.h:5
Definition Vec3.h:10
Definition NavigationDescription.h:13