Core/Misc: Really fixed nopch MSVC build

This commit is contained in:
Shauren
2017-12-11 23:14:01 +01:00
parent daef1493f2
commit e19bb7a1a5
3 changed files with 41 additions and 15 deletions

View File

@@ -18,7 +18,9 @@
#ifndef FlightPathMovementGenerator_h__
#define FlightPathMovementGenerator_h__
#include "WaypointMovementGenerator.h"
#include "DBCStructure.h"
#include "MovementGenerator.h"
#include "PathMovementBase.h"
class Player;

View File

@@ -0,0 +1,37 @@
/*
* Copyright (C) 2008-2017 TrinityCore <http://www.trinitycore.org/>
*
* 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

@@ -28,25 +28,12 @@
#include "DBCStructure.h"
#include "MovementGenerator.h"
#include "PathMovementBase.h"
#include "Timer.h"
class Creature;
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;