diff options
author | megamage <none@none> | 2009-03-18 21:39:09 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-18 21:39:09 -0600 |
commit | 281d20be0d1c342f01798b1254fccb3b5a202bcd (patch) | |
tree | f2edf7a2f81a625d72f4beacb4523747ee004aad /src/game/Object.h | |
parent | 886b2a51e9f3fdbb8f6353e47701be825f8cf4b3 (diff) |
*Allow spells to summon vehicles.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Object.h')
-rw-r--r-- | src/game/Object.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/Object.h b/src/game/Object.h index a8017d3883d..7ae42ea3a70 100644 --- a/src/game/Object.h +++ b/src/game/Object.h @@ -104,6 +104,7 @@ class Player; class UpdateMask; class InstanceData; class GameObject; +class Vehicle; typedef UNORDERED_MAP<Player*, UpdateData> UpdateDataMapType; @@ -498,9 +499,10 @@ class TRINITY_DLL_SPEC WorldObject : public Object Map * GetMap() const; Map const* GetBaseMap() const; - Creature* SummonCreature(uint32 id, float x, float y, float z, float ang,TempSummonType spwtype,uint32 despwtime); + Creature* SummonCreature(uint32 id, float x, float y, float z, float ang,TempSummonType spwtype,uint32 despwtime); + Vehicle* SummonVehicle(uint32 entry, float x, float y, float z, float ang); GameObject* SummonGameObject(uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime); - Creature* SummonTrigger(float x, float y, float z, float ang, uint32 dur, CreatureAI* (*GetAI)(Creature*) = NULL); + Creature* SummonTrigger(float x, float y, float z, float ang, uint32 dur, CreatureAI* (*GetAI)(Creature*) = NULL); bool isActiveObject() const { return m_isActive; } void setActive(bool isActiveObject); void SetWorldObject(bool apply); |