diff options
author | Sawiner <sawiner@hotmail.com> | 2011-04-16 17:15:21 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2011-04-16 17:15:21 +0200 |
commit | 1be1b1559ccda7187a5e727d258cb5f614c6153d (patch) | |
tree | f7dfcc941817b9065e807312717b3d8ac93bb369 /src/server/game/Scripting/ScriptSystem.h | |
parent | c1e8eefd74e10ec22bad4997baa5400a5c6f1791 (diff) |
Core/Scripts: Extended escort AI
Diffstat (limited to 'src/server/game/Scripting/ScriptSystem.h')
-rw-r--r-- | src/server/game/Scripting/ScriptSystem.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/server/game/Scripting/ScriptSystem.h b/src/server/game/Scripting/ScriptSystem.h index c353bcb7120..1fb84977e5d 100644 --- a/src/server/game/Scripting/ScriptSystem.h +++ b/src/server/game/Scripting/ScriptSystem.h @@ -42,6 +42,8 @@ struct ScriptPointMove uint32 uiWaitTime; }; +typedef std::vector<ScriptPointMove> ScriptPointVector; + struct StringTextData { uint32 uiSoundId; @@ -55,10 +57,11 @@ class SystemMgr friend class ACE_Singleton<SystemMgr, ACE_Null_Mutex>; SystemMgr() {} ~SystemMgr() {} + public: //Maps and lists typedef UNORDERED_MAP<int32, StringTextData> TextDataMap; - typedef UNORDERED_MAP<uint32, std::vector<ScriptPointMove> > PointMoveMap; + typedef UNORDERED_MAP<uint32, ScriptPointVector> PointMoveMap; //Database void LoadVersion(); @@ -67,9 +70,9 @@ class SystemMgr void LoadScriptWaypoints(); //Retrive from storage - StringTextData const* GetTextData(int32 uiTextId) const + StringTextData const* GetTextData(int32 textId) const { - TextDataMap::const_iterator itr = m_mTextDataMap.find(uiTextId); + TextDataMap::const_iterator itr = m_mTextDataMap.find(textId); if (itr == m_mTextDataMap.end()) return NULL; @@ -77,14 +80,14 @@ class SystemMgr return &itr->second; } - std::vector<ScriptPointMove> const &GetPointMoveList(uint32 uiCreatureEntry) const + ScriptPointVector const& GetPointMoveList(uint32 creatureEntry) const { - static std::vector<ScriptPointMove> vEmpty; + static ScriptPointVector empty; - PointMoveMap::const_iterator itr = m_mPointMoveMap.find(uiCreatureEntry); + PointMoveMap::const_iterator itr = m_mPointMoveMap.find(creatureEntry); if (itr == m_mPointMoveMap.end()) - return vEmpty; + return empty; return itr->second; } |