*Fix some bugs about vehicle.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-21 15:43:03 -05:00
parent c25158f836
commit 06667c40dd
4 changed files with 59 additions and 96 deletions
+10
View File
@@ -314,6 +314,7 @@ class Path;
class PetAura;
class Guardian;
class UnitAI;
class Transport;
struct SpellImmune
{
@@ -1629,11 +1630,20 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
void EnterVehicle(Vehicle *vehicle);
void ExitVehicle();
// Transports
Transport * GetTransport() const { return m_transport; }
void SetTransport(Transport * t) { m_transport = t; }
void BuildMovementPacket(ByteBuffer *data) const;
protected:
explicit Unit ();
UnitAI *i_AI, *i_disabledAI;
// Transports
Transport * m_transport;
void _UpdateSpells(uint32 time);
void _DeleteAuras();