Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
NearestAttackableTargetGoal Class Reference
Inheritance diagram for NearestAttackableTargetGoal:

Public Member Functions

virtual bool canUse ()
virtual bool canContinueToUse ()
virtual void start ()
virtual void appendDebugInfo (::std::string &str) const
virtual::ActorUniqueID _findTarget (::MobDescriptor const **outMobDescriptor)
MCAPI NearestAttackableTargetGoal (::Mob &mob, ::std::string name, ::GoalId const &goalId)
MCAPI bool _isTargetInCooldown (::MobDescriptor const &descriptor) const
MCAPI bool _selectTarget ()
MCAPI bool isTargetVisible (::Mob const &mob, float maxDistance, float maxHeight) const
MCAPI void * $ctor (::Mob &mob, ::std::string name, ::GoalId const &goalId)
MCAPI bool $canUse ()
MCAPI bool $canContinueToUse ()
MCAPI void $start ()
MCAPI void $appendDebugInfo (::std::string &str) const
MCAPI::ActorUniqueID $_findTarget (::MobDescriptor const **outMobDescriptor)
virtual bool isTargetGoal () const
virtual void stop ()
virtual void tick ()
virtual bool _canAttack (::Mob *testMob, ::Actor *target, bool allowInvulnerable, bool mustSee, ::MobDescriptor const **outDescriptorMatch)
MCAPI bool _canAttack (::Actor *target, bool allowInvulnerable, ::MobDescriptor const **outDescriptorMatch)
MCAPI bool _canReach (::Actor &target)
MCAPI bool _matchesTargetTypes (::Mob *testMob, ::Actor *target, bool mustSee, ::MobDescriptor const **outDescriptorMatch)
MCAPI void * $ctor (::Mob &pathMob, ::std::string name, ::GoalId const &goalId, ::std::vector<::MobDescriptor > const &targetTypes, bool mustSee, int mustSeeForgetTicks, bool mustReach, float withinDefault, bool attackOwner, int persistTargetTicks)
MCAPI void $dtor ()
MCAPI bool $isTargetGoal () const
MCAPI void $stop ()
MCAPI void $tick ()
MCAPI bool $_canAttack (::Mob *testMob, ::Actor *target, bool allowInvulnerable, bool mustSee, ::MobDescriptor const **outDescriptorMatch)
virtual bool canBeInterrupted ()
virtual void onPlayerDimensionChanged (::Player *player, ::DimensionType fromDimension, ::DimensionType toDimension)
virtual::GoalId getGoalId () const
MCAPI bool $canBeInterrupted ()
MCAPI void $onPlayerDimensionChanged (::Player *player, ::DimensionType fromDimension, ::DimensionType toDimension)
MCAPI::GoalId $getGoalId () const

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 8, ::ActorUniqueID > mTargetID
::ll::TypedStorage< 8, 8, ::MobDescriptor const * > mTargetDescriptor
::ll::TypedStorage< 1, 1, bool > mReselectTargets
::ll::TypedStorage< 8, 64, ::std::unordered_map<::MobDescriptor const *, ::Tick > > mTargetCooldowns
::ll::TypedStorage< 4, 8, ::IntRange > mAttackIntervalTicks
::ll::TypedStorage< 4, 4, int > mScanInterval
::ll::TypedStorage< 1, 1, bool > mSetPersistent
::ll::TypedStorage< 4, 4, float > mTargetSearchHeight
::ll::TypedStorage< 4, 4, float > mTargetInvisibleMultiplier
::ll::TypedStorage< 4, 4, float > mTargetSneakVisibilityMultiplier
::ll::TypedStorage< 4, 4, float > mTargetAcquisitionProbability
::ll::TypedStorage< 8, 8, ::Mob & > mMob
::ll::TypedStorage< 1, 1, bool > mAttackOwner
::ll::TypedStorage< 1, 1, bool > mMustReach
::ll::TypedStorage< 1, 1, bool > mGlobalMustSee
::ll::TypedStorage< 1, 1, bool > mTargetMustSee
::ll::TypedStorage< 4, 4, int > mTargetMustSeeForgetTicks
::ll::TypedStorage< 1, 1, bool > mFilterFailure
::ll::TypedStorage< 4, 4, int > mFilterFailureTicks
::ll::TypedStorage< 4, 4, int > mGlobalMustSeeForgetTicks
::ll::TypedStorage< 4, 4, int > mPersistTargetTicks
::ll::TypedStorage< 4, 4, int > mReachCache
::ll::TypedStorage< 4, 4, int > mReachCacheTime
::ll::TypedStorage< 4, 4, int > mUnseenTicks
::ll::TypedStorage< 4, 4, float > mWithinDefault
::ll::TypedStorage< 1, 1, bool > mReevaluateTarget
::ll::TypedStorage< 8, 24, ::std::vector<::MobDescriptor > > mTargetTypes
::ll::TypedStorage< 8, 32, ::std::string > mName
::ll::TypedStorage< 4, 4, int > mRequiredControlFlags
::ll::TypedStorage< 2, 2, ushort > mTypeId

Constructor & Destructor Documentation

◆ NearestAttackableTargetGoal()

MCAPI NearestAttackableTargetGoal::NearestAttackableTargetGoal ( ::Mob & mob,
::std::string name,
::GoalId const & goalId )
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.

Member Function Documentation

◆ canUse()

virtual bool NearestAttackableTargetGoal::canUse ( )
virtual

Implements BaseGoal.

◆ canContinueToUse()

virtual bool NearestAttackableTargetGoal::canContinueToUse ( )
virtual

Reimplemented from TargetGoal.

◆ start()

virtual void NearestAttackableTargetGoal::start ( )
virtual

Reimplemented from TargetGoal.

◆ appendDebugInfo()

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

Reimplemented from TargetGoal.

◆ _isTargetInCooldown()

MCAPI bool NearestAttackableTargetGoal::_isTargetInCooldown ( ::MobDescriptor const & descriptor) const
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.

◆ isTargetVisible()

MCAPI bool NearestAttackableTargetGoal::isTargetVisible ( ::Mob const & mob,
float maxDistance,
float maxHeight ) const
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.

◆ $ctor() [1/2]

MCAPI void * NearestAttackableTargetGoal::$ctor ( ::Mob & mob,
::std::string name,
::GoalId const & goalId )
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.

◆ $start()

MCAPI void NearestAttackableTargetGoal::$start ( )
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.

◆ $appendDebugInfo()

MCAPI void NearestAttackableTargetGoal::$appendDebugInfo ( ::std::string & str) const
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.

◆ $_findTarget()

MCAPI::ActorUniqueID NearestAttackableTargetGoal::$_findTarget ( ::MobDescriptor const ** outMobDescriptor)
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.

◆ $vftable()

MCAPI void ** NearestAttackableTargetGoal::$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.

◆ isTargetGoal()

virtual bool TargetGoal::isTargetGoal ( ) const
virtualinherited

Reimplemented from BaseGoal.

◆ stop()

virtual void TargetGoal::stop ( )
virtualinherited

Reimplemented from BaseGoal.

◆ tick()

virtual void TargetGoal::tick ( )
virtualinherited

Reimplemented from BaseGoal.

◆ _canAttack()

MCAPI bool TargetGoal::_canAttack ( ::Actor * target,
bool allowInvulnerable,
::MobDescriptor const ** outDescriptorMatch )
inherited
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.

◆ _canReach()

MCAPI bool TargetGoal::_canReach ( ::Actor & target)
inherited
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.

◆ $ctor() [2/2]

MCAPI void * TargetGoal::$ctor ( ::Mob & pathMob,
::std::string name,
::GoalId const & goalId,
::std::vector<::MobDescriptor > const & targetTypes,
bool mustSee,
int mustSeeForgetTicks,
bool mustReach,
float withinDefault,
bool attackOwner,
int persistTargetTicks )
inherited
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.

◆ $dtor()

MCAPI void TargetGoal::$dtor ( )
inherited
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.

◆ $isTargetGoal()

MCAPI bool TargetGoal::$isTargetGoal ( ) const
inherited
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.

◆ $stop()

MCAPI void TargetGoal::$stop ( )
inherited
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.

◆ $tick()

MCAPI void TargetGoal::$tick ( )
inherited
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.

◆ $_canAttack()

MCAPI bool TargetGoal::$_canAttack ( ::Mob * testMob,
::Actor * target,
bool allowInvulnerable,
bool mustSee,
::MobDescriptor const ** outDescriptorMatch )
inherited
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.

◆ $canBeInterrupted()

MCAPI bool BaseGoal::$canBeInterrupted ( )
inherited
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.

◆ $onPlayerDimensionChanged()

MCAPI void BaseGoal::$onPlayerDimensionChanged ( ::Player * player,
::DimensionType fromDimension,
::DimensionType toDimension )
inherited
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.

◆ $getGoalId()

MCAPI::GoalId BaseGoal::$getGoalId ( ) const
inherited
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: