LeviLamina
Loading...
Searching...
No Matches
BreedGoal.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/ecs/WeakEntityRef.h"
7#include "mc/world/actor/ai/goal/BaseGoal.h"
8
9// auto generated forward declare list
10// clang-format off
11class Mob;
12class Vec2;
13class Vec3;
14struct GoalId;
15// clang-format on
16
17class BreedGoal : public ::BaseGoal {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 8, ::Mob&> mOwner;
22 ::ll::TypedStorage<8, 24, ::WeakEntityRef> mPartner;
23 ::ll::TypedStorage<4, 4, int> mLoveTime;
24 ::ll::TypedStorage<4, 4, float> mSpeed;
25 ::ll::TypedStorage<1, 1, bool const> mStopNavigationOnStop;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 BreedGoal& operator=(BreedGoal const&);
31 BreedGoal(BreedGoal const&);
32 BreedGoal();
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 virtual bool canUse() /*override*/;
38
39 virtual bool canContinueToUse() /*override*/;
40
41 virtual void stop() /*override*/;
42
43 virtual void tick() /*override*/;
44
45 virtual void appendDebugInfo(::std::string& str) const /*override*/;
46 // NOLINTEND
47
48public:
49 // member functions
50 // NOLINTBEGIN
51 MCAPI BreedGoal(::Mob& animal, ::std::string name, ::GoalId const& goalId);
52
53 MCAPI bool _isCloseEnoughToBreed(::Vec3 pos1, ::Vec2 size1, ::Vec3 pos2, ::Vec2 size2) const;
54
55 MCAPI ::Mob* _moveToFreePartner() const;
56 // NOLINTEND
57
58public:
59 // constructor thunks
60 // NOLINTBEGIN
61 MCAPI void* $ctor(::Mob& animal, ::std::string name, ::GoalId const& goalId);
62 // NOLINTEND
63
64public:
65 // virtual function thunks
66 // NOLINTBEGIN
67 MCAPI bool $canUse();
68
69 MCAPI bool $canContinueToUse();
70
71 MCAPI void $stop();
72
73 MCAPI void $tick();
74
75 MCAPI void $appendDebugInfo(::std::string& str) const;
76
77
78 // NOLINTEND
79
80public:
81 // vftables
82 // NOLINTBEGIN
83 MCNAPI static void** $vftable();
84 // NOLINTEND
85};
Definition BaseGoal.h:12
static MCAPI void ** $vftable()
Definition Mob.h:56
Definition Vec2.h:5
Definition Vec3.h:10
Definition GoalId.h:5