LeviLamina
Loading...
Searching...
No Matches
SniffGoal.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/deps/shared_types/shared_types/FloatRange.h"
8#include "mc/world/actor/ActorType.h"
9#include "mc/world/actor/ai/goal/Goal.h"
10#include "mc/world/level/Tick.h"
11
12// auto generated forward declare list
13// clang-format off
14class Mob;
16// clang-format on
17
18class SniffGoal : public ::Goal {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
23 ::ll::TypedStorage<4, 12, ::Vec3> mSniffingRadius;
24 ::ll::TypedStorage<4, 8, ::SharedTypes::FloatRange> mCooldownRangeSeconds;
25 ::ll::TypedStorage<2, 2, ushort> mDurationTicks;
26 ::ll::TypedStorage<8, 8, ::Tick> mEndTick;
27 ::ll::TypedStorage<8, 8, ::Tick> mCooldownExpiryTick;
28 ::ll::TypedStorage<4, 4, float> mSuspicionRadiusHorizontal;
29 ::ll::TypedStorage<4, 4, float> mSuspicionRadiusVertical;
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 SniffGoal& operator=(SniffGoal const&);
35 SniffGoal(SniffGoal const&);
36 SniffGoal();
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 virtual bool canUse() /*override*/;
42
43 virtual bool canContinueToUse() /*override*/;
44
45 virtual void start() /*override*/;
46
47 virtual void stop() /*override*/;
48
49 virtual void tick() /*override*/;
50
51 virtual void appendDebugInfo(::std::string& str) const /*override*/;
52
53 virtual ~SniffGoal() /*override*/ = default;
54 // NOLINTEND
55
56public:
57 // member functions
58 // NOLINTBEGIN
59 MCAPI ::std::vector<::DistanceSortedActor> _fetchNearbySniffableActors(::ActorType actorType) const;
60
61 MCAPI ::std::optional<::DistanceSortedActor> _fetchNearestSniffableActor() const;
62 // NOLINTEND
63
64public:
65 // virtual function thunks
66 // NOLINTBEGIN
67 MCAPI bool $canUse();
68
69 MCAPI bool $canContinueToUse();
70
71 MCAPI void $start();
72
73 MCAPI void $stop();
74
75 MCFOLD void $tick();
76
77 MCAPI void $appendDebugInfo(::std::string& str) const;
78
79
80 // NOLINTEND
81
82public:
83 // vftables
84 // NOLINTBEGIN
85 MCNAPI static void** $vftable();
86 // NOLINTEND
87};
Definition Goal.h:14
Definition Mob.h:50
static MCAPI void ** $vftable()
Definition DistanceSortedActor.h:10