24class PickupItemsGoal :
public ::BaseGoal {
28 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnStartEvent;
29 ::ll::TypedStorage<8, 104, ::ActorDefinitionTrigger> mOnEndEvent;
30 ::ll::TypedStorage<8, 40, ::TempEPtr<::Actor>> mTarget;
31 ::ll::TypedStorage<8, 24, ::std::vector<::ItemDescriptor>> mExcludedItemsList;
32 ::ll::TypedStorage<8, 24, ::std::vector<::WeakEntityRef>> mFilteredPickupTargets;
33 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Path>> mPath;
34 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
35 ::ll::TypedStorage<4, 12, ::Vec3> mTargetPos;
36 ::ll::TypedStorage<4, 4, int> mSearchRange;
37 ::ll::TypedStorage<4, 4, int> mSearchHeight;
38 ::ll::TypedStorage<4, 4, int> mRandomStopInterval;
39 ::ll::TypedStorage<4, 4, int> mTimeToRecalcPath;
40 ::ll::TypedStorage<4, 4, int> mTimeoutAfterBeingAttacked;
41 ::ll::TypedStorage<4, 4, float> mSpeedModifier;
42 ::ll::TypedStorage<4, 4, float> mGoalRadiusSq;
43 ::ll::TypedStorage<1, 1, bool> mPickupBasedOnChance;
44 ::ll::TypedStorage<1, 1, bool> mTrackTarget;
45 ::ll::TypedStorage<1, 1, bool> mCanPickupAnyItem;
46 ::ll::TypedStorage<1, 1, bool> mCanPickupToHandOrEquipment;
47 ::ll::TypedStorage<1, 1, bool> mPickupSameItemsAsInHand;
52 PickupItemsGoal& operator=(PickupItemsGoal
const&);
53 PickupItemsGoal(PickupItemsGoal
const&);
59 virtual bool canUse() ;
61 virtual bool canContinueToUse() ;
63 virtual void start() ;
69 virtual void appendDebugInfo(::std::string& str)
const ;
75 MCAPI
explicit PickupItemsGoal(
::Mob& mob);
77 MCAPI
void _dropItem(
::ItemStack const& item)
const;
79 MCAPI ::std::vector<::WeakEntityRef>
80 _filterValidTargets(::std::vector<::DistanceSortedActor>
const& entities)
const;
82 MCAPI ::Shareable
const* _getShareableItem(
::ItemStack const& item)
const;
84 MCAPI
bool _hasRoomForCarriedItem()
const;
86 MCAPI
bool _isSameItemAsInHand(
::ItemStack const& item)
const;
90 MCAPI
void _updatePathIfNecessary(
::Actor const& target,
float targetDistanceSqr);
96 MCAPI
void* $ctor(
::Mob& mob);
102 MCAPI
bool $canUse();
104 MCAPI
bool $canContinueToUse();
112 MCAPI
void $appendDebugInfo(::std::string& str)
const;