aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-05 16:25:00 -0500
committermegamage <none@none>2009-04-05 16:25:00 -0500
commit5acc0c057b247142a85cc94363afefa8fdefa5a1 (patch)
tree7e7625f9945d0fed30c661b133dff363b03489fb /src/game/Player.cpp
parent81ef5e632fcfe9a565eebfea9556bde78c0a22e3 (diff)
[7612] Move SMSG_TRIGGER_CINEMATIC and SMSG_TRIGGER_MOVIE to functions and use its instead explicit packet creating. Author: NoFantasy
--HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index e0f2a162b8d..a56403cc97f 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -5568,6 +5568,20 @@ void Player::SendDirectMessage(WorldPacket *data)
GetSession()->SendPacket(data);
}
+void Player::SendCinematicStart(uint32 CinematicSequenceId)
+{
+ WorldPacket data(SMSG_TRIGGER_CINEMATIC, 4);
+ data << uint32(CinematicSequenceId);
+ SendDirectMessage(&data);
+}
+
+void Player::SendMovieStart(uint32 MovieId)
+{
+ WorldPacket data(SMSG_TRIGGER_MOVIE, 4);
+ data << uint32(MovieId);
+ SendDirectMessage(&data);
+}
+
void Player::CheckExploreSystem()
{
if (!isAlive())