Kitzunu
2021-01-10 14:27:55 +01:00
committed by GitHub
parent 7cf097eab2
commit da4edd547d
315 changed files with 3 additions and 729 deletions

View File

@@ -14,6 +14,5 @@ class TargetedMovementGeneratorBase;
class FollowerRefManager : public RefManager<Unit, TargetedMovementGeneratorBase>
{
};
#endif

View File

@@ -93,7 +93,6 @@ private:
}
void InitTop();
public:
explicit MotionMaster(Unit* unit) : _expList(nullptr), _top(-1), _owner(unit), _cleanFlag(MMCF_NONE)
{
for (uint8 i = 0; i < MAX_MOTION_SLOT; ++i)

View File

@@ -60,7 +60,6 @@ void ConfusedMovementGenerator<T>::DoInitialize(T* unit)
i_waypoints[idx][2] = idx > 0 ? i_waypoints[idx - 1][2] : z;
continue;
}
}
else
{

View File

@@ -18,7 +18,6 @@ template <>
class HomeMovementGenerator<Creature> : public MovementGeneratorMedium< Creature, HomeMovementGenerator<Creature> >
{
public:
HomeMovementGenerator() : arrived(false), i_recalculateTravel(false) {}
~HomeMovementGenerator() {}

View File

@@ -12,7 +12,6 @@
class IdleMovementGenerator : public MovementGenerator
{
public:
void Initialize(Unit*) override;
void Finalize(Unit*) override { }
void Reset(Unit*) override;

View File

@@ -100,7 +100,6 @@ class PathGenerator
}
private:
dtPolyRef _pathPolyRefs[MAX_PATH_LENGTH]; // array of detour polygon references
uint32 _polyLength; // number of polygons in the path

View File

@@ -60,7 +60,6 @@ public:
void LoadPath(Creature*);
private:
void Stop(int32 time) { i_nextMoveTime.Reset(time);}
bool Stopped() { return !i_nextMoveTime.Passed();}

View File

@@ -59,7 +59,6 @@ namespace Movement
class MoveSplineInit
{
public:
explicit MoveSplineInit(Unit* m);
/* Final pass of initialization that launches spline movement.
@@ -147,7 +146,6 @@ namespace Movement
*/
void DisableTransportPathTransformations();
protected:
MoveSplineInitArgs args;
Unit* unit;
};

View File

@@ -24,7 +24,6 @@ namespace Movement
{
static void WriteCommonMonsterMovePart(const MoveSpline& mov, ByteBuffer& data);
public:
static void WriteMonsterMove(const MoveSpline& mov, ByteBuffer& data);
static void WriteStopMovement(Vector3 const& loc, uint32 splineId, ByteBuffer& data);
static void WriteCreate(const MoveSpline& mov, ByteBuffer& data);

View File

@@ -78,7 +78,6 @@ namespace Movement
void UninitializedSplineInitMethod(Vector3 const*, index_type, bool, index_type) { ABORT(); }
public:
explicit SplineBase() {}
/** Caclulates the position for given segment Idx, and percent of segment length t
@@ -133,12 +132,10 @@ namespace Movement
typedef length_type LengthType;
typedef std::vector<length_type> LengthArray;
protected:
LengthArray lengths;
[[nodiscard]] index_type computeIndexInBounds(length_type length) const;
public:
explicit Spline() = default;
/** Calculates the position for given t

View File

@@ -145,6 +145,5 @@ void WaypointMgr::ReloadPath(uint32 id)
wp->event_chance = fields[8].GetUInt8();
path.push_back(wp);
} while (result->NextRow());
}