aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Battlefield/Battlefield.h
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2016-08-20 21:40:43 -0300
committerjoschiwald <joschiwald.trinity@gmail.com>2017-02-12 16:50:06 +0100
commit0925c350e765ce944186d4ba6e30dd6c3063abba (patch)
treea113bbc6fd2f4c33cce5fd20183be89bc5963326 /src/server/game/Battlefield/Battlefield.h
parent7616f22bfb44af507191b9652825c548d1ac9713 (diff)
Core/Battlefield: Cleanup of Wintergrasp script and battlefield system:
- Standards: Moved all statics to cpps where they belong. - Changed spawn position container from fixed size array to std::vector (not all positions were used in every case) - Removed unused parameter teamId from Battlefield::SpawnCreature - Removed workaround for GO rotation, added in a69cbeb9d5776025452009733f13ff3a631315e8 - Added rotation parameter to Battlefield:SpawnGameObject - Added sniffed rotation to existing script spawns. - Implemented Archavon's Log (Closes #16880) (cherry picked from commit 1deb7d2df178a98bc1b1cde2ca99301e7ee85ecb)
Diffstat (limited to 'src/server/game/Battlefield/Battlefield.h')
-rw-r--r--src/server/game/Battlefield/Battlefield.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/game/Battlefield/Battlefield.h b/src/server/game/Battlefield/Battlefield.h
index 9bd82eb5f8c..5b22ba1b9f9 100644
--- a/src/server/game/Battlefield/Battlefield.h
+++ b/src/server/game/Battlefield/Battlefield.h
@@ -294,9 +294,8 @@ class TC_GAME_API Battlefield : public ZoneScript
BfGraveyard* GetGraveyardById(uint32 id) const;
// Misc methods
- virtual Creature* SpawnCreature(uint32 entry, float x, float y, float z, float o, TeamId /*teamId*/);
- Creature* SpawnCreature(uint32 entry, Position const& pos, TeamId /*teamId*/);
- GameObject* SpawnGameObject(uint32 entry, float x, float y, float z, float o);
+ Creature* SpawnCreature(uint32 entry, Position const& pos);
+ GameObject* SpawnGameObject(uint32 entry, Position const& pos, G3D::Quat const& rot);
Creature* GetCreature(ObjectGuid guid);
GameObject* GetGameObject(ObjectGuid guid);