LeviLamina
Loading...
Searching...
No Matches
MeleeAttackGoal Class Reference
+ Inheritance diagram for MeleeAttackGoal:

Public Types

using LineOfSightEvaluator = bool (*)(::Mob const&, ::Actor const&)
 
using AttackReachEvaluator
 

Public Member Functions

virtual void tick ()
 
virtual void appendDebugInfo (::std::string &str) const
 
MCAPI MeleeAttackGoal (::Mob &mob)
 
MCAPI float _getAttackReachSqr (::Actor const &target) const
 
MCAPI void * $ctor (::Mob &mob)
 
MCAPI void $dtor ()
 
MCAPI void $tick ()
 
MCAPI void $appendDebugInfo (::std::string &str) const
 
virtual bool canUse ()
 
virtual bool canContinueToUse ()
 
virtual void start ()
 
virtual void stop ()
 
virtual void _attemptMoveToTarget (::Actor &target)
 
MCAPI void _attemptAttackTarget (::Actor &target, bool canReachTarget, bool hasLineOfSight)
 
MCAPI void _attemptMoveToTargetPosition (::Actor &target, bool canReachTarget, float targetDistanceSq)
 
MCAPI bool _inSunlight (::Actor const &actor) const
 
MCAPI bool $canUse ()
 
MCAPI bool $canContinueToUse ()
 
MCFOLD void $start ()
 
MCAPI void $stop ()
 
MCAPI void $_attemptMoveToTarget (::Actor &target)
 
virtual bool canBeInterrupted ()
 
virtual bool isTargetGoal () const
 
virtual void onPlayerDimensionChanged (::Player *player, ::DimensionType fromDimension, ::DimensionType toDimension)
 
MCFOLD bool $canBeInterrupted ()
 
MCFOLD bool $isTargetGoal () const
 
MCFOLD void $onPlayerDimensionChanged (::Player *player, ::DimensionType fromDimension, ::DimensionType toDimension)
 

Static Public Member Functions

static MCAPI bool _canReachTarget (::Mob const &mob, ::Vec3 const &targetPosition, float attackReachSq, float targetMinY, float targetMaxY, float targetDistanceSqXZ, int attackTicks)
 
static MCAPI bool _canReachTargetLegacy (::Mob const &mob, ::Vec3 const &targetPosition, float attackReachSq, float targetMinY, float targetMaxY, float targetDistanceSqXZ, int attackTicks)
 
static MCFOLD bool _isTargetInLineOfSight (::Mob const &mob, ::Actor const &target)
 
static MCAPI bool _isTargetInLineOfSightLegacy (::Mob const &mob, ::Actor const &target)
 
static MCAPI ::BaseGameVersion const & min3DAttackVersion ()
 
static MCAPI ::BaseGameVersion const & minHitThroughWallFixVersion ()
 
static MCAPI void ** $vftable ()
 

Public Attributes

::ll::TypedStorage< 8, 8, bool(*)(::Mob const &, ::Vec3 const &, float const, float const, float const, float const, int const)> mReachEvaluator
 
::ll::TypedStorage< 8, 8, bool(*)(::Mob const &, ::Actor const &)> mLineOfSightEvaluator
 
::ll::TypedStorage< 4, 4, float > mReachMultiplier
 
::ll::TypedStorage< 8, 8, ::Mob & > mMob
 
::ll::TypedStorage< 8, 40, ::TempEPtr<::Actor > > mTarget
 
::ll::TypedStorage< 1, 1, bool > mAttackOnce
 
::ll::TypedStorage< 1, 1, bool > mHasAttacked
 
::ll::TypedStorage< 1, 1, bool > mRequireCompletePath
 
::ll::TypedStorage< 1, 1, bool > mTrackTarget
 
::ll::TypedStorage< 4, 4, int > mRandomStopInterval
 
::ll::TypedStorage< 4, 4, int > mAttackTicks
 
::ll::TypedStorage< 4, 4, int > mCooldownTicks
 
::ll::TypedStorage< 4, 4, int > mMinPathTicks
 
::ll::TypedStorage< 4, 4, int > mMaxPathTicks
 
::ll::TypedStorage< 4, 4, int > mTicksToRecalculatePath
 
::ll::TypedStorage< 4, 4, int > mPathFailTickIncrease
 
::ll::TypedStorage< 4, 4, int > mInnerBoundaryTickIncrease
 
::ll::TypedStorage< 4, 4, int > mOuterBoundaryTickIncrease
 
::ll::TypedStorage< 4, 4, float > mPathInnerBoundarySq
 
::ll::TypedStorage< 4, 4, float > mPathOuterBoundarySq
 
::ll::TypedStorage< 4, 4, float > mMeleeFov
 
::ll::TypedStorage< 4, 4, float > mMaxRotationX
 
::ll::TypedStorage< 4, 4, float > mMaxHeadRotationY
 
::ll::TypedStorage< 4, 4, float > mSpeedMultiplier
 
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::Path > > mPath
 
::ll::TypedStorage< 4, 12, ::Vec3mPathTarget
 
::ll::TypedStorage< 4, 4, ::ActorCategory > mAttackTypes
 
::ll::TypedStorage< 8, 104, ::ActorDefinitionTriggermOnAttack
 
::ll::TypedStorage< 8, 104, ::ActorDefinitionTriggermOnKill
 
::ll::TypedStorage< 1, 1, bool > mSetPersistent
 
::ll::TypedStorage< 1, 1, bool > mCanSpreadOnFire
 
::ll::TypedStorage< 4, 4, int > mRequiredControlFlags
 
::ll::TypedStorage< 8, 32, ::std::string > mName
 
::ll::TypedStorage< 2, 2, ushort > mTypeId
 

Member Typedef Documentation

◆ AttackReachEvaluator

using MeleeAttackGoal::AttackReachEvaluator
Initial value:
bool (*)(::Mob const&, ::Vec3 const&, float const, float const, float const, float const, int const)
Definition Mob.h:47
Definition Vec3.h:10

Member Function Documentation

◆ tick()

virtual void MeleeAttackGoal::tick ( )
virtual

Implements MeleeAttackBaseGoal.

◆ appendDebugInfo()

virtual void MeleeAttackGoal::appendDebugInfo ( ::std::string & str) const
virtual

Implements Goal.

◆ canUse()

virtual bool MeleeAttackBaseGoal::canUse ( )
virtualinherited

Implements Goal.

◆ canContinueToUse()

virtual bool MeleeAttackBaseGoal::canContinueToUse ( )
virtualinherited

Reimplemented from Goal.

◆ start()

virtual void MeleeAttackBaseGoal::start ( )
virtualinherited

Reimplemented from Goal.

◆ stop()

virtual void MeleeAttackBaseGoal::stop ( )
virtualinherited

Reimplemented from Goal.


The documentation for this class was generated from the following file: