From 0a668c6c3c1b461555c01ed254e0bb1b71fa0095 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sun, 1 Mar 2009 02:29:05 -0500 Subject: Add a signal for Arena to let the plugin know when to clean it up --- sigencore/Arena.cpp | 2 ++ sigencore/Arena.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'sigencore') diff --git a/sigencore/Arena.cpp b/sigencore/Arena.cpp index 7d404311..81211485 100644 --- a/sigencore/Arena.cpp +++ b/sigencore/Arena.cpp @@ -277,6 +277,8 @@ void Arena::cleanUp() QList clients = m_teams.keys(); foreach (Client* client, clients) client->exitArena(); + emit(battleEnded()); + emit(cleanup(this)); } void Arena::handleAction(TeamMember* teamMember, TeamMember::Action action) diff --git a/sigencore/Arena.h b/sigencore/Arena.h index 2416e7e2..2757365d 100644 --- a/sigencore/Arena.h +++ b/sigencore/Arena.h @@ -104,6 +104,8 @@ class SIGENCORE_EXPORT Arena : public Sigscript::Config void battleAboutToEnd(); void battleEnded(); + void cleanup(Sigencore::Arena* arena); + void aboutToClearActions(); void weatherStarted(TeamMember* teamMember, Sigscript::WeatherWrapper* weather); -- cgit