Core/Misc: Really fixed nopch MSVC build

(cherry picked from commit e19bb7a1a5)
This commit is contained in:
Shauren
2017-12-11 23:14:01 +01:00
parent 045b26fe9f
commit dcca884605
3 changed files with 41 additions and 15 deletions

View File

@@ -18,9 +18,11 @@
#ifndef FlightPathMovementGenerator_h__
#define FlightPathMovementGenerator_h__
#include "WaypointMovementGenerator.h"
#include "MovementGenerator.h"
#include "PathMovementBase.h"
class Player;
struct TaxiPathNodeEntry;
/**
* FlightPathMovementGenerator generates movement of the player for the paths

View File

@@ -0,0 +1,37 @@
/*
* This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PathMovementBase_h__
#define PathMovementBase_h__
#include "Define.h"
template<class Entity, class BasePath>
class PathMovementBase
{
public:
PathMovementBase() : _path(), _currentNode(0) { }
virtual ~PathMovementBase() { };
uint32 GetCurrentNode() const { return _currentNode; }
protected:
BasePath _path;
uint32 _currentNode;
};
#endif // PathMovementBase_h__

View File

@@ -26,26 +26,13 @@
*/
#include "MovementGenerator.h"
#include "PathMovementBase.h"
#include "Timer.h"
class Creature;
struct TaxiPathNodeEntry;
struct WaypointPath;
template<class Entity, class BasePath>
class PathMovementBase
{
public:
PathMovementBase() : _path(), _currentNode(0) { }
virtual ~PathMovementBase() { };
uint32 GetCurrentNode() const { return _currentNode; }
protected:
BasePath _path;
uint32 _currentNode;
};
template<class T>
class WaypointMovementGenerator;