LeviLamina
Loading...
Searching...
No Matches
NapGoal.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/world/actor/ActorFilterGroup.h"
8#include "mc/world/actor/ai/goal/BaseGoal.h"
9#include "mc/world/level/Tick.h"
10
11// auto generated forward declare list
12// clang-format off
13class Mob;
14// clang-format on
15
16class NapGoal : public ::BaseGoal {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
21 ::ll::TypedStorage<8, 8, ::Tick> mCooldown;
22 ::ll::TypedStorage<8, 8, ::Tick> mDetectMobsTimer;
23 ::ll::TypedStorage<1, 1, bool> mInvalidCooldown;
24 ::ll::TypedStorage<4, 4, int const> mNapCooldownMin;
25 ::ll::TypedStorage<4, 4, int const> mNapCooldownMax;
26 ::ll::TypedStorage<4, 12, ::Vec3 const> mDetectRange;
27 ::ll::TypedStorage<8, 64, ::ActorFilterGroup> mCanNapFilters;
28 ::ll::TypedStorage<8, 64, ::ActorFilterGroup> mWakeMobExceptions;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 NapGoal& operator=(NapGoal const&);
34 NapGoal(NapGoal const&);
35 NapGoal();
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 virtual bool canUse() /*override*/;
41
42 virtual void start() /*override*/;
43
44 virtual void stop() /*override*/;
45
46 virtual bool canContinueToUse() /*override*/;
47
48 virtual void appendDebugInfo(::std::string& str) const /*override*/;
49 // NOLINTEND
50
51public:
52 // member functions
53 // NOLINTBEGIN
54 MCAPI NapGoal(
55 ::Mob& mob,
56 float cooldownTimeMin,
57 float cooldownTimeMax,
58 float detectMobDistXZ,
59 float detectMobDistY,
60 ::ActorFilterGroup const& canNapFilters,
61 ::ActorFilterGroup const& wakeMobExceptions
62 );
63
64 MCAPI bool _detectsMobs() const;
65 // NOLINTEND
66
67public:
68 // constructor thunks
69 // NOLINTBEGIN
70 MCAPI void* $ctor(
71 ::Mob& mob,
72 float cooldownTimeMin,
73 float cooldownTimeMax,
74 float detectMobDistXZ,
75 float detectMobDistY,
76 ::ActorFilterGroup const& canNapFilters,
77 ::ActorFilterGroup const& wakeMobExceptions
78 );
79 // NOLINTEND
80
81public:
82 // virtual function thunks
83 // NOLINTBEGIN
84 MCAPI bool $canUse();
85
86 MCAPI void $start();
87
88 MCAPI void $stop();
89
90 MCAPI bool $canContinueToUse();
91
92 MCAPI void $appendDebugInfo(::std::string& str) const;
93
94
95 // NOLINTEND
96
97public:
98 // vftables
99 // NOLINTBEGIN
100 MCNAPI static void** $vftable();
101 // NOLINTEND
102};
Definition ActorFilterGroup.h:19
Definition Mob.h:57
static MCAPI void ** $vftable()