LeviLamina
Loading...
Searching...
No Matches
MoveControl.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/ai/control/Control.h"
7
8// auto generated forward declare list
9// clang-format off
10class Mob;
12class Vec3;
14// clang-format on
15
16class MoveControl : public ::Control {
17public:
18 // virtual functions
19 // NOLINTBEGIN
20 virtual ~MoveControl() /*override*/;
21
22 virtual void initializeInternal(::Mob& mob, ::MoveControlDescription const* description);
23
24 virtual void tick(::MoveControlComponent& parent, ::Mob& mob);
25
26 virtual void setWantedPosition(::MoveControlComponent& parent, ::Mob& mob, ::Vec3 const& pos, float speed);
27 // NOLINTEND
28
29public:
30 // member functions
31 // NOLINTBEGIN
32 MCAPI MoveControl();
33
34 MCAPI float
35 calculateMoveSpeed(::MoveControlComponent const& parent, ::Mob& mob, ::Vec3 const& endPosition, float maxMoveSpeed);
36
37 MCAPI float calculateYRotation(
38 ::MoveControlComponent const& parent,
39 ::Mob const& mob,
40 ::Vec3 const& positionDifference,
41 float maxMoveSpeed
42 );
43
44 MCAPI bool shouldSlowSpeed(::MoveControlComponent const& parent, ::Mob const& mob, float endDistanceSqr);
45 // NOLINTEND
46
47public:
48 // static variables
49 // NOLINTBEGIN
50 MCAPI static float const& MIN_SPEED();
51 // NOLINTEND
52
53public:
54 // constructor thunks
55 // NOLINTBEGIN
56 MCAPI void* $ctor();
57 // NOLINTEND
58
59public:
60 // destructor thunk
61 // NOLINTBEGIN
62 MCFOLD void $dtor();
63 // NOLINTEND
64
65public:
66 // virtual function thunks
67 // NOLINTBEGIN
68 MCFOLD void $initializeInternal(::Mob& mob, ::MoveControlDescription const* description);
69
70 MCAPI void $tick(::MoveControlComponent& parent, ::Mob& mob);
71
72 MCAPI void $setWantedPosition(::MoveControlComponent& parent, ::Mob& mob, ::Vec3 const& pos, float speed);
73
74
75 // NOLINTEND
76
77public:
78 // vftables
79 // NOLINTBEGIN
80 MCAPI static void** $vftable();
81 // NOLINTEND
82};
Definition Control.h:5
Definition Mob.h:57
Definition MoveControlComponent.h:16
Definition Vec3.h:10
Definition MoveControlDescription.h:13