Changeset 206 for trunk/src/game
- Timestamp:
- 11/19/08 13:46:16 (17 years ago)
- Location:
- trunk/src/game
- Files:
-
- 18 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Group.h
r132 r206 143 143 typedef MemberSlotList::const_iterator member_citerator; 144 144 145 typedef HM_NAMESPACE::hash_map< uint32 /*mapId*/, InstanceGroupBind> BoundInstancesMap;145 typedef UNORDERED_MAP< uint32 /*mapId*/, InstanceGroupBind> BoundInstancesMap; 146 146 protected: 147 147 typedef MemberSlotList::iterator member_witerator; -
trunk/src/game/HateMatrix.h
r102 r206 22 22 #define TRINITY_HATEMATRIX_H 23 23 24 #include "Utilities/ HashMap.h"24 #include "Utilities/UnorderedMap.h" 25 25 #include <cassert> 26 26 -
trunk/src/game/InstanceSaveMgr.h
r102 r206 28 28 #include <list> 29 29 #include <map> 30 #include "Utilities/ HashMap.h"30 #include "Utilities/UnorderedMap.h" 31 31 #include "Database/DatabaseEnv.h" 32 32 … … 122 122 123 123 typedef std::map<uint32 /*InstanceId*/, InstanceSave*> InstanceSaveMap; 124 typedef HM_NAMESPACE::hash_map<uint32 /*InstanceId*/, InstanceSave*> InstanceSaveHashMap;124 typedef UNORDERED_MAP<uint32 /*InstanceId*/, InstanceSave*> InstanceSaveHashMap; 125 125 typedef std::map<uint32 /*mapId*/, InstanceSaveMap> InstanceSaveMapMap; 126 126 -
trunk/src/game/ItemEnchantmentMgr.cpp
r102 r206 43 43 44 44 typedef std::vector<EnchStoreItem> EnchStoreList; 45 typedef HM_NAMESPACE::hash_map<uint32, EnchStoreList> EnchantmentStore;45 typedef UNORDERED_MAP<uint32, EnchStoreList> EnchantmentStore; 46 46 47 47 static EnchantmentStore RandomItemEnch; -
trunk/src/game/LootMgr.h
r102 r206 123 123 typedef std::map<uint32, QuestItemList *> QuestItemMap; 124 124 typedef std::vector<LootStoreItem> LootStoreItemList; 125 typedef HM_NAMESPACE::hash_map<uint32, LootTemplate*> LootTemplateMap;125 typedef UNORDERED_MAP<uint32, LootTemplate*> LootTemplateMap; 126 126 127 127 typedef std::set<uint32> LootIdSet; -
trunk/src/game/Map.h
r174 r206 119 119 #endif 120 120 121 typedef HM_NAMESPACE::hash_map<Creature*, CreatureMover> CreatureMoveList;121 typedef UNORDERED_MAP<Creature*, CreatureMover> CreatureMoveList; 122 122 123 123 #define MAX_HEIGHT 100000.0f // can be use for find ground height at surface -
trunk/src/game/MapInstanced.h
r102 r206 29 29 friend class MapManager; 30 30 public: 31 typedef HM_NAMESPACE::hash_map< uint32, Map* > InstancedMaps;31 typedef UNORDERED_MAP< uint32, Map* > InstancedMaps; 32 32 33 33 MapInstanced(uint32 id, time_t, uint32 aInstanceId); -
trunk/src/game/MapManager.h
r102 r206 34 34 35 35 friend class Trinity::OperatorNew<MapManager>; 36 typedef HM_NAMESPACE::hash_map<uint32, Map*> MapMapType;37 typedef std::pair< HM_NAMESPACE::hash_map<uint32, Map*>::iterator, bool> MapMapPair;36 typedef UNORDERED_MAP<uint32, Map*> MapMapType; 37 typedef std::pair<UNORDERED_MAP<uint32, Map*>::iterator, bool> MapMapPair; 38 38 39 39 public: -
trunk/src/game/Object.h
r174 r206 95 95 class GameObject; 96 96 97 typedef HM_NAMESPACE::hash_map<Player*, UpdateData> UpdateDataMapType;97 typedef UNORDERED_MAP<Player*, UpdateData> UpdateDataMapType; 98 98 99 99 struct WorldLocation -
trunk/src/game/ObjectAccessor.cpp
r174 r206 670 670 /// Define the static member of HashMapHolder 671 671 672 template <class T> HM_NAMESPACE::hash_map< uint64, T* > HashMapHolder<T>::m_objectMap;672 template <class T> UNORDERED_MAP< uint64, T* > HashMapHolder<T>::m_objectMap; 673 673 template <class T> ZThread::FastMutex HashMapHolder<T>::i_lock; 674 674 -
trunk/src/game/ObjectAccessor.h
r174 r206 25 25 #include "Policies/Singleton.h" 26 26 #include "zthread/FastMutex.h" 27 #include "Utilities/ HashMap.h"27 #include "Utilities/UnorderedMap.h" 28 28 #include "Policies/ThreadingModel.h" 29 29 … … 50 50 public: 51 51 52 typedef HM_NAMESPACE::hash_map< uint64, T* > MapType;52 typedef UNORDERED_MAP< uint64, T* > MapType; 53 53 typedef ZThread::FastMutex LockType; 54 54 typedef Trinity::GeneralLock<LockType > Guard; … … 92 92 93 93 public: 94 typedef HM_NAMESPACE::hash_map<uint64, Corpse* > Player2CorpsesMapType;95 typedef HM_NAMESPACE::hash_map<Player*, UpdateData>::value_type UpdateDataValueType;94 typedef UNORDERED_MAP<uint64, Corpse* > Player2CorpsesMapType; 95 typedef UNORDERED_MAP<Player*, UpdateData>::value_type UpdateDataValueType; 96 96 97 97 template<class T> static T* GetObjectInWorld(uint64 guid, T* /*fake*/) -
trunk/src/game/ObjectMgr.h
r168 r206 75 75 }; 76 76 77 typedef HM_NAMESPACE::hash_map<uint32, GameTele > GameTeleMap;77 typedef UNORDERED_MAP<uint32, GameTele > GameTeleMap; 78 78 typedef std::list<GossipOption> CacheNpcOptionList; 79 79 … … 124 124 CellCorpseSet corpses; 125 125 }; 126 typedef HM_NAMESPACE::hash_map<uint32/*cell_id*/,CellObjectGuids> CellObjectGuidsMap;127 typedef HM_NAMESPACE::hash_map<uint32/*(mapid,spawnMode) pair*/,CellObjectGuidsMap> MapObjectGuids;128 129 typedef HM_NAMESPACE::hash_map<uint64/*(instance,guid) pair*/,time_t> RespawnTimes;126 typedef UNORDERED_MAP<uint32/*cell_id*/,CellObjectGuids> CellObjectGuidsMap; 127 typedef UNORDERED_MAP<uint32/*(mapid,spawnMode) pair*/,CellObjectGuidsMap> MapObjectGuids; 128 129 typedef UNORDERED_MAP<uint64/*(instance,guid) pair*/,time_t> RespawnTimes; 130 130 131 131 struct TrinityStringLocale … … 134 134 }; 135 135 136 typedef HM_NAMESPACE::hash_map<uint32,CreatureData> CreatureDataMap;137 typedef HM_NAMESPACE::hash_map<uint32,GameObjectData> GameObjectDataMap;138 typedef HM_NAMESPACE::hash_map<uint32,CreatureLocale> CreatureLocaleMap;139 typedef HM_NAMESPACE::hash_map<uint32,GameObjectLocale> GameObjectLocaleMap;140 typedef HM_NAMESPACE::hash_map<uint32,ItemLocale> ItemLocaleMap;141 typedef HM_NAMESPACE::hash_map<uint32,QuestLocale> QuestLocaleMap;142 typedef HM_NAMESPACE::hash_map<uint32,NpcTextLocale> NpcTextLocaleMap;143 typedef HM_NAMESPACE::hash_map<uint32,PageTextLocale> PageTextLocaleMap;144 typedef HM_NAMESPACE::hash_map<uint32,TrinityStringLocale> TrinityStringLocaleMap;145 typedef HM_NAMESPACE::hash_map<uint32,NpcOptionLocale> NpcOptionLocaleMap;136 typedef UNORDERED_MAP<uint32,CreatureData> CreatureDataMap; 137 typedef UNORDERED_MAP<uint32,GameObjectData> GameObjectDataMap; 138 typedef UNORDERED_MAP<uint32,CreatureLocale> CreatureLocaleMap; 139 typedef UNORDERED_MAP<uint32,GameObjectLocale> GameObjectLocaleMap; 140 typedef UNORDERED_MAP<uint32,ItemLocale> ItemLocaleMap; 141 typedef UNORDERED_MAP<uint32,QuestLocale> QuestLocaleMap; 142 typedef UNORDERED_MAP<uint32,NpcTextLocale> NpcTextLocaleMap; 143 typedef UNORDERED_MAP<uint32,PageTextLocale> PageTextLocaleMap; 144 typedef UNORDERED_MAP<uint32,TrinityStringLocale> TrinityStringLocaleMap; 145 typedef UNORDERED_MAP<uint32,NpcOptionLocale> NpcOptionLocaleMap; 146 146 147 147 typedef std::multimap<uint32,uint32> QuestRelations; … … 229 229 uint32 unArenaInfoSlot2; 230 230 }CachePlayerInfo, *PCachePlayerInfo; 231 typedef HM_NAMESPACE::hash_map<uint32, PCachePlayerInfo> CachePlayerInfoMap;231 typedef UNORDERED_MAP<uint32, PCachePlayerInfo> CachePlayerInfoMap; 232 232 233 233 struct PlayerCondition … … 250 250 251 251 // NPC gossip text id 252 typedef HM_NAMESPACE::hash_map<uint32, uint32> CacheNpcTextIdMap;253 254 255 typedef HM_NAMESPACE::hash_map<uint32, VendorItemData> CacheVendorItemMap;256 typedef HM_NAMESPACE::hash_map<uint32, TrainerSpellData> CacheTrainerSpellMap;252 typedef UNORDERED_MAP<uint32, uint32> CacheNpcTextIdMap; 253 254 255 typedef UNORDERED_MAP<uint32, VendorItemData> CacheVendorItemMap; 256 typedef UNORDERED_MAP<uint32, TrainerSpellData> CacheTrainerSpellMap; 257 257 258 258 enum SkillRangeType … … 292 292 ~ObjectMgr(); 293 293 294 typedef HM_NAMESPACE::hash_map<uint32, Item*> ItemMap;294 typedef UNORDERED_MAP<uint32, Item*> ItemMap; 295 295 296 296 typedef std::set< Group * > GroupSet; … … 298 298 typedef std::set< ArenaTeam * > ArenaTeamSet; 299 299 300 typedef HM_NAMESPACE::hash_map<uint32, Quest*> QuestMap;301 302 typedef HM_NAMESPACE::hash_map<uint32, AreaTrigger> AreaTriggerMap;303 304 typedef HM_NAMESPACE::hash_map<uint32, std::string> AreaTriggerScriptMap;305 306 typedef HM_NAMESPACE::hash_map<uint32, ReputationOnKillEntry> RepOnKillMap;307 308 typedef HM_NAMESPACE::hash_map<uint32, WeatherZoneChances> WeatherZoneMap;309 310 typedef HM_NAMESPACE::hash_map<uint32, PetCreateSpellEntry> PetCreateSpellMap;300 typedef UNORDERED_MAP<uint32, Quest*> QuestMap; 301 302 typedef UNORDERED_MAP<uint32, AreaTrigger> AreaTriggerMap; 303 304 typedef UNORDERED_MAP<uint32, std::string> AreaTriggerScriptMap; 305 306 typedef UNORDERED_MAP<uint32, ReputationOnKillEntry> RepOnKillMap; 307 308 typedef UNORDERED_MAP<uint32, WeatherZoneChances> WeatherZoneMap; 309 310 typedef UNORDERED_MAP<uint32, PetCreateSpellEntry> PetCreateSpellMap; 311 311 312 312 Player* GetPlayer(const char* name) const { return ObjectAccessor::Instance().FindPlayerByName(name);} … … 804 804 QuestMap mQuestTemplates; 805 805 806 typedef HM_NAMESPACE::hash_map<uint32, GossipText*> GossipTextMap;807 typedef HM_NAMESPACE::hash_map<uint32, uint32> QuestAreaTriggerMap;808 typedef HM_NAMESPACE::hash_map<uint32, uint32> BattleMastersMap;809 typedef HM_NAMESPACE::hash_map<uint32, std::string> ItemTextMap;806 typedef UNORDERED_MAP<uint32, GossipText*> GossipTextMap; 807 typedef UNORDERED_MAP<uint32, uint32> QuestAreaTriggerMap; 808 typedef UNORDERED_MAP<uint32, uint32> BattleMastersMap; 809 typedef UNORDERED_MAP<uint32, std::string> ItemTextMap; 810 810 typedef std::set<uint32> TavernAreaTriggerSet; 811 811 typedef std::set<uint32> GameObjectForQuestSet; -
trunk/src/game/Pet.h
r152 r206 116 116 }; 117 117 118 typedef HM_NAMESPACE::hash_map<uint16, PetSpell*> PetSpellMap;118 typedef UNORDERED_MAP<uint16, PetSpell*> PetSpellMap; 119 119 typedef std::map<uint32,uint32> TeachSpellMap; 120 120 typedef std::vector<uint32> AutoSpellList; -
trunk/src/game/Player.h
r178 r206 92 92 }; 93 93 94 typedef HM_NAMESPACE::hash_map<uint16, PlayerSpell*> PlayerSpellMap;94 typedef UNORDERED_MAP<uint16, PlayerSpell*> PlayerSpellMap; 95 95 typedef std::list<SpellModifier*> SpellModList; 96 96 … … 1367 1367 time_t m_nextMailDelivereTime; 1368 1368 1369 typedef HM_NAMESPACE::hash_map<uint32, Item*> ItemMap;1369 typedef UNORDERED_MAP<uint32, Item*> ItemMap; 1370 1370 1371 1371 ItemMap mMitems; //template defined in objectmgr.cpp … … 2025 2025 /*********************************************************/ 2026 2026 2027 typedef HM_NAMESPACE::hash_map< uint32 /*mapId*/, InstancePlayerBind > BoundInstancesMap;2027 typedef UNORDERED_MAP< uint32 /*mapId*/, InstancePlayerBind > BoundInstancesMap; 2028 2028 2029 2029 void UpdateHomebindTime(uint32 time); -
trunk/src/game/SkillDiscovery.cpp
r173 r206 43 43 44 44 typedef std::list<SkillDiscoveryEntry> SkillDiscoveryList; 45 typedef HM_NAMESPACE::hash_map<int32, SkillDiscoveryList> SkillDiscoveryMap;45 typedef UNORDERED_MAP<int32, SkillDiscoveryList> SkillDiscoveryMap; 46 46 47 47 static SkillDiscoveryMap SkillDiscoveryStore; -
trunk/src/game/SpellMgr.h
r196 r206 29 29 #include "Database/SQLStorage.h" 30 30 31 #include "Utilities/ HashMap.h"31 #include "Utilities/UnorderedMap.h" 32 32 #include <map> 33 33 … … 493 493 }; 494 494 495 typedef HM_NAMESPACE::hash_map<uint32, SpellProcEventEntry> SpellProcEventMap;495 typedef UNORDERED_MAP<uint32, SpellProcEventEntry> SpellProcEventMap; 496 496 497 497 #define ELIXIR_BATTLE_MASK 0x1 … … 532 532 }; 533 533 534 typedef HM_NAMESPACE::hash_map<uint32, SpellTargetPosition> SpellTargetPositionMap;534 typedef UNORDERED_MAP<uint32, SpellTargetPosition> SpellTargetPositionMap; 535 535 536 536 // Spell pet auras … … 595 595 }; 596 596 597 typedef HM_NAMESPACE::hash_map<uint32, SpellChainNode> SpellChainMap;597 typedef UNORDERED_MAP<uint32, SpellChainNode> SpellChainMap; 598 598 typedef std::multimap<uint32, uint32> SpellChainMapNext; 599 599 -
trunk/src/game/WaypointManager.h
r102 r206 24 24 #include <vector> 25 25 #include <string> 26 #include "Utilities/ HashMap.h"26 #include "Utilities/UnorderedMap.h" 27 27 28 28 struct WaypointBehavior … … 83 83 void _clearPath(WaypointPath &path); 84 84 85 typedef HM_NAMESPACE::hash_map<uint32, WaypointPath> WaypointPathMap;85 typedef UNORDERED_MAP<uint32, WaypointPath> WaypointPathMap; 86 86 WaypointPathMap m_pathMap; 87 87 }; -
trunk/src/game/World.h
r149 r206 505 505 uint32 mail_timer_expires; 506 506 507 typedef HM_NAMESPACE::hash_map<uint32, Weather*> WeatherMap;507 typedef UNORDERED_MAP<uint32, Weather*> WeatherMap; 508 508 WeatherMap m_weathers; 509 typedef HM_NAMESPACE::hash_map<uint32, WorldSession*> SessionMap;509 typedef UNORDERED_MAP<uint32, WorldSession*> SessionMap; 510 510 SessionMap m_sessions; 511 511 std::set<WorldSession*> m_kicked_sessions;