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

Classes

struct  AttackPos

Public Types

enum class  Direction : int { North = 0 , South = 1 , West = 2 , East = 3 }
enum class  State : int {
  TakeAttackPos = 0 , TurnToTarget = 1 , VerifyTargetStillInPosition = 2 , WaitOneSec = 3 ,
  Charge = 4 , KnockAfterCharge = 5 , Done = 6
}

Public Member Functions

RamAttackGoal & operator= (RamAttackGoal const &)
 RamAttackGoal (RamAttackGoal const &)
virtual void start ()
virtual void stop ()
virtual bool canUse ()
virtual bool canContinueToUse ()
virtual void tick ()
virtual void appendDebugInfo (::std::string &str) const
MCAPI RamAttackGoal (::Mob &mob, ::std::string name, ::GoalId const &goalId)
MCAPI void _findTreeBehindTarget ()
MCAPI bool _initiateRamAttack ()
MCAPI void _tryKnockbackTarget ()
MCAPI void * $ctor (::Mob &mob, ::std::string name, ::GoalId const &goalId)
MCAPI void $start ()
MCAPI void $stop ()
MCAPI bool $canUse ()
MCAPI bool $canContinueToUse ()
MCAPI void $tick ()
MCAPI void $appendDebugInfo (::std::string &str) const
virtual bool canBeInterrupted ()
virtual bool isTargetGoal () const
virtual void onPlayerDimensionChanged (::Player *player, ::DimensionType fromDimension, ::DimensionType toDimension)
virtual::GoalId getGoalId () const
MCAPI void $dtor ()
MCFOLD bool $canBeInterrupted ()
MCFOLD bool $isTargetGoal () const
MCFOLD 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, ::Mob & > mMob
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::Path > > mPath
::ll::TypedStorage< 4, 12, ::Vec3 > mPrepareChargePos
::ll::TypedStorage< 4, 12, ::Vec3 > mTargetPos
::ll::TypedStorage< 4, 8, ::Vec2 > mRamDirection
::ll::TypedStorage< 8, 8, ::Tick > mWaitBeforeChargeTimer
::ll::TypedStorage< 8, 8, ::Tick > mChargeTimeoutTimer
::ll::TypedStorage< 8, 8, ::Tick > mKnockAfterChargeTimeoutTimer
::ll::TypedStorage< 8, 8, ::Tick > mRamRetryTimeout
::ll::TypedStorage< 4, 4, ::RamAttackGoal::State > mState
::ll::TypedStorage< 8, 24, ::std::vector<::RamAttackGoal::AttackPos > > mAttackPosVector
::ll::TypedStorage< 4, 4, int > mRamDistance
::ll::TypedStorage< 4, 4, int > mMinRamDistance
::ll::TypedStorage< 4, 4, float > mKnockbackForce
::ll::TypedStorage< 4, 4, float > mKnockbackHeight
::ll::TypedStorage< 4, 4, float > mBabyKnockbackModifier
::ll::TypedStorage< 4, 4, float > mRunSpeed
::ll::TypedStorage< 4, 4, float > mRamSpeed
::ll::TypedStorage< 8, 24, ::std::vector<::ActorDefinitionTrigger > > mOnStartTriggers
::ll::TypedStorage< 4, 4, ::SharedTypes::Legacy::LevelSoundEvent > mPreRamSound
::ll::TypedStorage< 4, 4, ::SharedTypes::Legacy::LevelSoundEvent > mRamImpactSound
::ll::TypedStorage< 4, 8, ::SharedTypes::FloatRange > mCooldownTime
::ll::TypedStorage< 8, 8, ::ActorUniqueID > mTargetId
::ll::TypedStorage< 1, 1, bool > mHasKnockbacked
::ll::TypedStorage< 8, 8, ::Tick > mCooldownTimeout
::ll::TypedStorage< 8, 8, ::std::unique_ptr<::RamAttackGoalUtils::RamGoalItemDropperInterface > > mRamGoalItemDropper
::ll::TypedStorage< 8, 32, ::std::string > mName
::ll::TypedStorage< 4, 4, int > mRequiredControlFlags
::ll::TypedStorage< 2, 2, ushort > mTypeId

Member Function Documentation

◆ start()

virtual void RamAttackGoal::start ( )
virtual

Reimplemented from BaseGoal.

◆ stop()

virtual void RamAttackGoal::stop ( )
virtual

Reimplemented from BaseGoal.

◆ canUse()

virtual bool RamAttackGoal::canUse ( )
virtual

Implements BaseGoal.

◆ canContinueToUse()

virtual bool RamAttackGoal::canContinueToUse ( )
virtual

Reimplemented from BaseGoal.

◆ tick()

virtual void RamAttackGoal::tick ( )
virtual

Reimplemented from BaseGoal.

◆ appendDebugInfo()

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

Implements BaseGoal.

◆ $vftable()

MCAPI void ** BaseGoal::$vftable ( )
staticinherited
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: