23class FireAtTargetGoal :
public ::BaseGoal {
35 ::ll::TypedStorage<8, 64, ::ActorFilterGroup> mFilters;
36 ::ll::TypedStorage<4, 8, ::FloatRange> mAttackRange;
37 ::ll::TypedStorage<4, 4, float> mAttackCooldownInSeconds;
38 ::ll::TypedStorage<4, 4, float> mPreShootDelayInSeconds;
39 ::ll::TypedStorage<4, 4, float> mPostShootDelayInSeconds;
40 ::ll::TypedStorage<4, 4, float> mMaxHeadRotationX;
41 ::ll::TypedStorage<4, 4, float> mMaxHeadRotationY;
42 ::ll::TypedStorage<4, 4, float> mRangedFOV;
43 ::ll::TypedStorage<8, 176, ::ActorDefinitionIdentifier> mProjectileDefinition;
44 ::ll::TypedStorage<4, 4, ::ProjectileAnchor> mOwnerAnchor;
45 ::ll::TypedStorage<4, 12, ::Vec3> mOwnerOffset;
46 ::ll::TypedStorage<4, 4, ::ProjectileAnchor> mTargetAnchor;
47 ::ll::TypedStorage<4, 12, ::Vec3> mTargetOffset;
53 MCAPI
void initialize(
::EntityContext& entity, ::FireAtTargetGoal& goal)
const;
55 MCAPI
void setOwnerAnchor(
int const& value);
57 MCAPI
void setProjectileDefinitionByName(::std::string
const& name);
59 MCAPI
void setTargetAnchor(
int const& value);
65 MCAPI
static void buildSchema(
66 ::std::string
const& name,
82 ::ll::TypedStorage<8, 8, ::Mob&> mMob;
83 ::ll::TypedStorage<8, 64, ::ActorFilterGroup> mFilters;
84 ::ll::TypedStorage<4, 8, ::FloatRange> mAttackRangeSquared;
85 ::ll::TypedStorage<4, 4, uint> mAttackCooldownTicks;
86 ::ll::TypedStorage<4, 4, uint> mPreShootDelayTicks;
87 ::ll::TypedStorage<8, 8, uint64> mDurationTicks;
88 ::ll::TypedStorage<4, 4, float> mMaxHeadRotationX;
89 ::ll::TypedStorage<4, 4, float> mMaxHeadRotationY;
90 ::ll::TypedStorage<4, 4, float> mRangedFOV;
91 ::ll::TypedStorage<1, 1, bool> mTriedToShoot;
92 ::ll::TypedStorage<8, 8, uint64> mAttackCooldownTimeStamp;
93 ::ll::TypedStorage<8, 8, uint64> mPreShootDelayTimeStamp;
94 ::ll::TypedStorage<8, 8, uint64> mEndTimeStamp;
95 ::ll::TypedStorage<8, 176, ::ActorDefinitionIdentifier> mProjectileDefinition;
96 ::ll::TypedStorage<4, 4, ::ProjectileAnchor> mOwnerAnchor;
97 ::ll::TypedStorage<4, 12, ::Vec3> mOwnerOffset;
98 ::ll::TypedStorage<4, 4, ::ProjectileAnchor> mTargetAnchor;
99 ::ll::TypedStorage<4, 12, ::Vec3> mTargetOffset;
104 FireAtTargetGoal& operator=(FireAtTargetGoal
const&);
105 FireAtTargetGoal(FireAtTargetGoal
const&);
111 virtual bool canUse() ;
113 virtual bool canContinueToUse() ;
115 virtual void start() ;
117 virtual void stop() ;
119 virtual void tick() ;
121 virtual void appendDebugInfo(::std::string& str)
const ;
127 MCAPI
explicit FireAtTargetGoal(
::Mob& mob);
129 MCAPI
bool _isTargetWithinRange(
::Vec3 const& targetPosition)
const;
135 MCAPI static ::Vec3 getAnchorAndOffsetPosition(
137 ::ProjectileAnchor anchor,
146 MCAPI
void* $ctor(
::Mob& mob);
152 MCAPI
bool $canUse();
154 MCAPI
bool $canContinueToUse();
162 MCAPI
void $appendDebugInfo(::std::string& str)
const;
Definition EntityContext.h:17