17class FloatWanderGoal :
public ::BaseGoal {
21 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
22 ::ll::TypedStorage<4, 12, ::Vec3> mTargetPos;
23 ::ll::TypedStorage<4, 4, int> mFloatDuration;
24 ::ll::TypedStorage<4, 4, float> mTargetXZDist;
25 ::ll::TypedStorage<4, 4, float> mTargetYDist;
26 ::ll::TypedStorage<4, 4, float> mSurfaceXZDist;
27 ::ll::TypedStorage<4, 4, float> mSurfaceYDist;
28 ::ll::TypedStorage<4, 4, float> mYOffset;
29 ::ll::TypedStorage<1, 1, bool> mMustReach;
30 ::ll::TypedStorage<1, 1, bool> mRandomReselect;
31 ::ll::TypedStorage<1, 1, bool> mUseHomePositionRestriction;
32 ::ll::TypedStorage<1, 1, bool> mAdditionalCollisionBuffer;
33 ::ll::TypedStorage<1, 1, bool> mAllowNavigatingThroughLiquids;
34 ::ll::TypedStorage<1, 1, bool> mNavigateAroundSurface;
35 ::ll::TypedStorage<4, 8, ::FloatRange> mFloatDurationRange;
40 FloatWanderGoal& operator=(FloatWanderGoal
const&);
41 FloatWanderGoal(FloatWanderGoal
const&);
47 virtual bool canUse() ;
51 virtual void appendDebugInfo(::std::string& str)
const ;
57 MCAPI FloatWanderGoal(
66 bool additionalCollisionBuffer,
67 bool navigateAroundSurface,
68 bool useHomePositionRestriction,
69 bool allowNavigatingThroughLiquids,
71 bool hasMoveControlFlag
74 MCAPI
bool _canReach(
::Vec3 const& targetPos,
float dist)
const;
76 MCAPI ::Vec3 _chooseRandomPosition(
::Vec3 const& mobPos,
::Random& random);
78 MCAPI ::Vec3
const _getSuitableTargetPosition();
80 MCAPI
bool const _isPosCloseToSurface(
83 int distanceToBlocksY,
84 int distanceToBlocksXZ
100 bool additionalCollisionBuffer,
101 bool navigateAroundSurface,
102 bool useHomePositionRestriction,
103 bool allowNavigatingThroughLiquids,
105 bool hasMoveControlFlag
112 MCAPI
bool $canUse();
116 MCAPI
void $appendDebugInfo(::std::string& str)
const;