diff options
| author | QAston <none@none> | 2009-08-01 00:20:32 +0200 |
|---|---|---|
| committer | QAston <none@none> | 2009-08-01 00:20:32 +0200 |
| commit | 1d96091d2a4f9a886a4d3cd80ec3c873d395dbdd (patch) | |
| tree | 88589d294e7eb5ccabf7e667970b116e6a2670a6 /src/game/Player.h | |
| parent | 0db1fd6c26b90241cfe039f2e2b3e35d10cb9cbd (diff) | |
*Improvements in map managing.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.h')
| -rw-r--r-- | src/game/Player.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/Player.h b/src/game/Player.h index 49d4c1346b9..c8fbe96049f 100644 --- a/src/game/Player.h +++ b/src/game/Player.h @@ -2032,7 +2032,7 @@ class TRINITY_DLL_SPEC Player : public Unit float m_homebindX; float m_homebindY; float m_homebindZ; - void RelocateToHomebind() { SetLocationMapId(m_homebindMapId); Relocate(m_homebindX,m_homebindY,m_homebindZ); } + void RelocateToHomebind(uint32 & newMap) { newMap = m_homebindMapId; Relocate(m_homebindX,m_homebindY,m_homebindZ); } // currently visible objects at player client typedef std::set<uint64> ClientGUIDs; @@ -2122,6 +2122,10 @@ class TRINITY_DLL_SPEC Player : public Unit GridReference<Player> &GetGridRef() { return m_gridRef; } MapReference &GetMapRef() { return m_mapRef; } + // Set map to player and add reference + void SetMap(Map * map) {Unit::SetMap(map); m_mapRef.link(map, this);} + void ResetMap(); + bool isAllowedToLoot(Creature* creature); DeclinedName const* GetDeclinedNames() const { return m_declinedname; } |
