LeviLamina
Loading...
Searching...
No Matches
MeleeAttackBaseGoal Class Referenceabstract
Inheritance diagram for MeleeAttackBaseGoal:

Classes

struct  NavigationSettings

Public Member Functions

MeleeAttackBaseGoaloperator= (MeleeAttackBaseGoal const &)
 MeleeAttackBaseGoal (MeleeAttackBaseGoal const &)
virtual bool canUse ()
virtual bool canContinueToUse ()
virtual void start ()
virtual void stop ()
virtual void tick ()=0
virtual int getAttackTicksResetValue () const
MCAPI MeleeAttackBaseGoal (::Mob &mob)
MCAPI void _attemptAttackTarget (::Actor &target, bool canReachTarget, bool hasLineOfSight)
MCAPI void _attemptMoveToTarget (::Actor const &target)
MCAPI void _attemptMoveToTargetPosition (::Actor const &target, bool canReachTarget, float targetDistanceSq)
MCAPI void _decrementAttackTicks ()
MCAPI void _decrementPathRecalculationTicks ()
MCFOLD::Vec3 const & _getLastCachedTargetPosition () const
MCFOLD::Mob & _getMob () const
MCAPI::Mob & _getNavigatingMob () const
MCAPI::NavigationComponent * _getNavigationComponent () const
MCAPI::Actor * _getTarget () const
MCFOLD int _getTicksToRecalculatePath () const
MCAPI void _increasePathRecalculationFailureTick ()
MCAPI bool _isNavigationDoneOrStuck () const
MCAPI void _resetAttackTicks ()
MCAPI void _setHasAttacked ()
MCAPI bool _shouldRecalculatePath (bool canReachTarget) const
MCAPI bool _targetPositionPutsMobInSun ()
MCAPI void _tryLookAtTarget (::Actor const &target) const
MCFOLD int getAttackTicks () const
MCFOLD int getCooldownTicks () const
MCAPI float getMeleeFOV () const
MCAPI bool hasAttackTicksLeft () const
MCAPI bool isWithinFoV (::Vec3 const &position) const
MCAPI void * $ctor (::Mob &mob)
MCFOLD void $dtor ()
MCAPI bool $canUse ()
MCAPI bool $canContinueToUse ()
MCAPI void $start ()
MCAPI void $stop ()
MCFOLD int $getAttackTicksResetValue () const
virtual bool canBeInterrupted ()
virtual void appendDebugInfo (::std::string &str) const =0
virtual bool isTargetGoal () const
virtual void onPlayerDimensionChanged (::Player *player, ::DimensionType fromDimension, ::DimensionType toDimension)
MCFOLD int getRequiredControlFlags () const
MCAPI ushort getTypeId () const
MCFOLD void setRequiredControlFlags (int requiredControlFlags)
MCAPI void * $ctor ()
MCFOLD bool $canBeInterrupted ()
MCFOLD void $tick ()
MCFOLD bool $isTargetGoal () const
MCFOLD void $onPlayerDimensionChanged (::Player *player, ::DimensionType fromDimension, ::DimensionType toDimension)

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 48, ::MeleeAttackBaseGoal::NavigationSettingsmNavigation
::ll::TypedStorage< 8, 8, ::Mob & > mMob
::ll::TypedStorage< 8, 40, ::TempEPtr<::Actor > > mTarget
::ll::TypedStorage< 4, 12, ::Vec3mLastCachedTargetPosition
::ll::TypedStorage< 4, 4, ::ActorCategory > mAttackTypes
::ll::TypedStorage< 8, 104, ::ActorDefinitionTriggermOnAttack
::ll::TypedStorage< 8, 104, ::ActorDefinitionTriggermOnKill
::ll::TypedStorage< 4, 4, float > mMeleeFov
::ll::TypedStorage< 4, 4, float > mMaxRotationX
::ll::TypedStorage< 4, 4, float > mMaxHeadRotationY
::ll::TypedStorage< 4, 4, int > mRandomStopInterval
::ll::TypedStorage< 4, 4, int > mAttackTicks
::ll::TypedStorage< 4, 4, int > mCooldownTicks
::ll::TypedStorage< 1, 1, bool > mAttackOnce
::ll::TypedStorage< 1, 1, bool > mHasAttacked
::ll::TypedStorage< 1, 1, bool > mSetPersistent
::ll::TypedStorage< 1, 1, bool > mCanSpreadOnFire
::ll::TypedStorage< 8, 32, ::std::string > mDebugName
::ll::TypedStorage< 4, 4, int > mRequiredControlFlags
::ll::TypedStorage< 2, 2, ushort > mTypeId

Member Function Documentation

◆ canUse()

virtual bool MeleeAttackBaseGoal::canUse ( )
virtual

Implements BaseGoal.

◆ canContinueToUse()

virtual bool MeleeAttackBaseGoal::canContinueToUse ( )
virtual

Reimplemented from BaseGoal.

◆ start()

virtual void MeleeAttackBaseGoal::start ( )
virtual

Reimplemented from BaseGoal.

◆ stop()

virtual void MeleeAttackBaseGoal::stop ( )
virtual

Reimplemented from BaseGoal.

◆ tick()

virtual void MeleeAttackBaseGoal::tick ( )
pure virtual

Reimplemented from BaseGoal.

◆ $vftable()

MCAPI void ** MeleeAttackBaseGoal::$vftable ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

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