TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WaypointMovementGenerator.cpp File Reference
#include "WaypointMovementGenerator.h"
#include "ObjectMgr.h"
#include "Transport.h"
#include "MapManager.h"
#include "Creature.h"
#include "CreatureAI.h"
#include "CreatureGroups.h"
#include "Player.h"
#include "MoveSplineInit.h"
#include "MoveSpline.h"
+ Include dependency graph for WaypointMovementGenerator.cpp:

Macros

#define SKIP_SPLINE_POINT_DISTANCE_SQ   (40.0f * 40.0f)
 
#define PLAYER_FLIGHT_SPEED   30.0f
 

Functions

bool IsNodeIncludedInShortenedPath (TaxiPathNodeEntry const *p1, TaxiPathNodeEntry const *p2)
 

Macro Definition Documentation

#define PLAYER_FLIGHT_SPEED   30.0f
#define SKIP_SPLINE_POINT_DISTANCE_SQ   (40.0f * 40.0f)

Function Documentation

bool IsNodeIncludedInShortenedPath ( TaxiPathNodeEntry const p1,
TaxiPathNodeEntry const p2 
)
262 {
263  return p1->MapID != p2->MapID || std::pow(p1->Loc.X - p2->Loc.X, 2) + std::pow(p1->Loc.Y - p2->Loc.Y, 2) > SKIP_SPLINE_POINT_DISTANCE_SQ;
264 }
#define SKIP_SPLINE_POINT_DISTANCE_SQ
Definition: WaypointMovementGenerator.cpp:259
G3D::Quat pow(const G3D::Quat &q, double x)
Definition: Quat.h:761

+ Here is the call graph for this function:

+ Here is the caller graph for this function: