AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
WaypointMovementGenerator.cpp File Reference
#include "WaypointMovementGenerator.h"
#include "Creature.h"
#include "CreatureAI.h"
#include "CreatureGroups.h"
#include "GameTime.h"
#include "MapMgr.h"
#include "MoveSpline.h"
#include "MoveSplineInit.h"
#include "ObjectMgr.h"
#include "Player.h"
#include "Spell.h"
#include "Transport.h"
#include "World.h"

Go to the source code of this file.

Macros

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

Functions

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

Macro Definition Documentation

◆ PLAYER_FLIGHT_SPEED

#define PLAYER_FLIGHT_SPEED   32.0f

◆ SKIP_SPLINE_POINT_DISTANCE_SQ

#define SKIP_SPLINE_POINT_DISTANCE_SQ   (40.0f * 40.0f)

Function Documentation

◆ IsNodeIncludedInShortenedPath()

bool IsNodeIncludedInShortenedPath ( TaxiPathNodeEntry const *  p1,
TaxiPathNodeEntry const *  p2 
)
305{
306 return p1->mapid != p2->mapid || std::pow(p1->x - p2->x, 2) + std::pow(p1->y - p2->y, 2) > SKIP_SPLINE_POINT_DISTANCE_SQ;
307}
#define SKIP_SPLINE_POINT_DISTANCE_SQ
Definition: WaypointMovementGenerator.cpp:302

References TaxiPathNodeEntry::mapid, SKIP_SPLINE_POINT_DISTANCE_SQ, TaxiPathNodeEntry::x, and TaxiPathNodeEntry::y.

Referenced by FlightPathMovementGenerator::LoadPath().