Changeset 44 for trunk/src/game/MapManager.h
- Timestamp:
- 11/19/08 13:27:40 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/MapManager.h
r2 r44 1 1 /* 2 * Copyright (C) 2005-2008 MaNGOS <http://www.mangosproject.org/> 2 * Copyright (C) 2008 Trinity <http://www.trinitycore.org/> 3 * 4 * Thanks to the original authors: MaNGOS <http://www.mangosproject.org/> 3 5 * 4 6 * This program is free software; you can redistribute it and/or modify … … 9 11 * This program is distributed in the hope that it will be useful, 10 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 14 * GNU General Public License for more details. 13 15 * 14 16 * You should have received a copy of the GNU General Public License 15 17 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307USA18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 19 */ 18 20 19 #ifndef MANGOS_MAPMANAGER_H20 #define MANGOS_MAPMANAGER_H21 #ifndef TRINITY_MAPMANAGER_H 22 #define TRINITY_MAPMANAGER_H 21 23 22 24 #include "Platform/Define.h" … … 28 30 class Transport; 29 31 30 class MANGOS_DLL_DECL MapManager : public MaNGOS::Singleton<MapManager, MaNGOS::ClassLevelLockable<MapManager, ZThread::Mutex> >32 class TRINITY_DLL_DECL MapManager : public Trinity::Singleton<MapManager, Trinity::ClassLevelLockable<MapManager, ZThread::Mutex> > 31 33 { 32 34 33 friend class MaNGOS::OperatorNew<MapManager>;35 friend class Trinity::OperatorNew<MapManager>; 34 36 typedef HM_NAMESPACE::hash_map<uint32, Map*> MapMapType; 35 37 typedef std::pair<HM_NAMESPACE::hash_map<uint32, Map*>::iterator, bool> MapMapPair; … … 81 83 static bool IsValidMapCoord(uint32 mapid, float x,float y) 82 84 { 83 return IsValidMAP(mapid) && MaNGOS::IsValidMapCoord(x,y);85 return IsValidMAP(mapid) && Trinity::IsValidMapCoord(x,y); 84 86 } 85 87 86 88 static bool IsValidMapCoord(uint32 mapid, float x,float y,float z) 87 89 { 88 return IsValidMAP(mapid) && MaNGOS::IsValidMapCoord(x,y,z);90 return IsValidMAP(mapid) && Trinity::IsValidMapCoord(x,y,z); 89 91 } 90 92 91 93 static bool IsValidMapCoord(uint32 mapid, float x,float y,float z,float o) 92 94 { 93 return IsValidMAP(mapid) && MaNGOS::IsValidMapCoord(x,y,z,o);95 return IsValidMAP(mapid) && Trinity::IsValidMapCoord(x,y,z,o); 94 96 } 95 97 … … 132 134 } 133 135 134 typedef MaNGOS::ClassLevelLockable<MapManager, ZThread::Mutex>::Lock Guard;136 typedef Trinity::ClassLevelLockable<MapManager, ZThread::Mutex>::Lock Guard; 135 137 uint32 i_gridCleanUpDelay; 136 138 MapMapType i_maps;