LeviLamina
Loading...
Searching...
No Matches
DelayedAttackGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/LevelSoundEvent.h"
7#include "mc/world/actor/ActorFlags.h"
8#include "mc/world/actor/ai/goal/MeleeAttackGoal.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class BaseGameVersion;
14class Mob;
15// clang-format on
16
17class DelayedAttackGoal : public ::MeleeAttackGoal {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 4, int> mAttackDurationTicks;
22 ::ll::TypedStorage<4, 4, int> mPostPathingTicks;
23 ::ll::TypedStorage<4, 4, int> mHitDelayTicks;
24 ::ll::TypedStorage<4, 4, ::ActorFlags> mAttackFlag;
25 ::ll::TypedStorage<4, 4, ::SharedTypes::Legacy::LevelSoundEvent> mSound;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 DelayedAttackGoal();
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual bool canUse() /*override*/;
36
37 virtual bool canContinueToUse() /*override*/;
38
39 virtual void start() /*override*/;
40
41 virtual void stop() /*override*/;
42
43 virtual void tick() /*override*/;
44
45 virtual void appendDebugInfo(::std::string& str) const /*override*/;
46
47 virtual int getAttackTicksResetValue() const /*override*/;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCAPI explicit DelayedAttackGoal(::Mob& mob);
54
55 MCAPI void _attemptAttack(::Actor& target, bool canReach, bool hasLineOfSight);
56
57 MCAPI void _attemptStartAttacking(::Actor& target) const;
58 // NOLINTEND
59
60public:
61 // static functions
62 // NOLINTBEGIN
63 MCAPI static bool _isTargetInLineOfSightLegacy(::Mob const& mob, ::Actor const& target);
64 // NOLINTEND
65
66public:
67 // static variables
68 // NOLINTBEGIN
69 MCAPI static ::BaseGameVersion const& mMinLineOfSightFixVersion();
70 // NOLINTEND
71
72public:
73 // constructor thunks
74 // NOLINTBEGIN
75 MCAPI void* $ctor(::Mob& mob);
76 // NOLINTEND
77
78public:
79 // virtual function thunks
80 // NOLINTBEGIN
81 MCFOLD bool $canUse();
82
83 MCAPI bool $canContinueToUse();
84
85 MCFOLD void $start();
86
87 MCAPI void $stop();
88
89 MCAPI void $tick();
90
91 MCAPI void $appendDebugInfo(::std::string& str) const;
92
93 MCAPI int $getAttackTicksResetValue() const;
94
95
96 // NOLINTEND
97
98public:
99 // vftables
100 // NOLINTBEGIN
101 MCNAPI static void** $vftable();
102 // NOLINTEND
103};
Definition Actor.h:125
Definition BaseGameVersion.h:13
static MCAPI void ** $vftable()
Definition Mob.h:57