[7598] Implement proper hide out of range (at another map) transports. Remove duplicate name field. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-02 16:49:29 -06:00
parent 943d0c6e2d
commit 03f482fb8e
3 changed files with 51 additions and 16 deletions
+2 -2
View File
@@ -56,7 +56,7 @@ class TransportPath
std::vector<PathNode> i_nodes;
};
class Transport : private GameObject
class Transport : protected GameObject
{
public:
explicit Transport();
@@ -83,7 +83,6 @@ class Transport : private GameObject
typedef std::set<Player*> PlayerSet;
PlayerSet const& GetPassengers() const { return m_passengers; }
std::string m_name;
private:
struct WayPoint
{
@@ -114,6 +113,7 @@ class Transport : private GameObject
private:
void TeleportTransport(uint32 newMapid, float x, float y, float z);
void UpdateForMap(Map const* map);
WayPointMap::iterator GetNextWayPoint();
};
#endif