*Add new creature_template column VehicleId

*Allow spawn vehicles
*Make vehicles grid objects.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-28 22:44:09 -06:00
parent 3a485c658d
commit 783e4fd3ff
13 changed files with 132 additions and 12 deletions
+2 -1
View File
@@ -32,7 +32,7 @@ class Vehicle : public Creature
void AddToWorld();
void RemoveFromWorld();
bool Create (uint32 guidlow, Map *map, uint32 Entry, uint32 vehicleId, uint32 team);
bool Create (uint32 guidlow, Map *map, uint32 phaseMask, uint32 Entry, uint32 vehicleId, uint32 team);
void setDeathState(DeathState s); // overwrite virtual Creature::setDeathState and Unit::setDeathState
void Update(uint32 diff); // overwrite virtual Creature::Update and Unit::Update
@@ -42,6 +42,7 @@ class Vehicle : public Creature
void Dismiss();
bool LoadFromDB(uint32 guid, Map *map);
protected:
uint32 m_vehicleId;