diff options
| author | azazel <none@none> | 2010-08-05 00:55:10 +0600 |
|---|---|---|
| committer | azazel <none@none> | 2010-08-05 00:55:10 +0600 |
| commit | f3eab911022115852b2a94ae359b6557447c53fc (patch) | |
| tree | 72a7d9f7a45376b8493c3b8aa5b22d2b798411ee /src/server/game/Maps/Map.h | |
| parent | 96fa91034f06a8a6a22c00639f71a5a6f9787020 (diff) | |
* Convert SCRIPT_COMMAND_* defines to enum. Make comments for values up-to-date.
* Cleanup ScriptsProcess method. Move repeating parts of code to inline helper methods.
* Improve SCRIPT_COMMAND_CAST_SPELL command. You can specify triggered attribute when datalong2 = 4 by making dataint negative.
* Improve SCRIPT_COMMAND_KILL command. Now, if source is not a creature, it tries to use target object instead.
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/Maps/Map.h')
| -rw-r--r-- | src/server/game/Maps/Map.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/server/game/Maps/Map.h b/src/server/game/Maps/Map.h index 83633ca5845..1fdcaa3ba34 100644 --- a/src/server/game/Maps/Map.h +++ b/src/server/game/Maps/Map.h @@ -517,6 +517,15 @@ class Map : public GridRefManager<NGridType> ActiveNonPlayers::iterator m_activeNonPlayersIter; private: + Player* _GetScriptPlayerSourceOrTarget(Object* source, Object* target, uint32 unScriptID, const char *sCommandName) const; + Creature* _GetScriptCreatureSourceOrTarget(Object* source, Object* target, uint32 unScriptID, const char *sCommandName, bool bReverse = false) const; + Unit* _GetScriptUnit(Object* obj, bool isSource, uint32 unScriptID, const char *sCommandName) const; + Player* _GetScriptPlayer(Object* obj, bool isSource, uint32 unScriptID, const char *sCommandName) const; + Creature* _GetScriptCreature(Object* obj, bool isSource, uint32 unScriptID, const char *sCommandName) const; + WorldObject* _GetScriptWorldObject(Object* obj, bool isSource, uint32 unScriptID, const char *sCommandName) const; + void _ScriptProcessDoor(Object* source, Object* target, bool bOpen, uint32 guid, int32 nTimeToToggle, uint32 unScriptID) const; + GameObject* _FindGameObject(WorldObject* pWorldObject, uint32 guid) const; + time_t i_gridExpiry; //used for fast base_map (e.g. MapInstanced class object) search for |
