summaryrefslogtreecommitdiffstats
path: root/sigencore
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-03-01 02:29:05 -0500
committerBen Boeckel <MathStuf@gmail.com>2009-03-01 02:29:05 -0500
commit0a668c6c3c1b461555c01ed254e0bb1b71fa0095 (patch)
treefd1a1ad6713ee52fcf3e222f37e7cdab4c37e552 /sigencore
parente14b179c9a4d0abe71c6cdb36afba6ef6526d23d (diff)
downloadsigen-0a668c6c3c1b461555c01ed254e0bb1b71fa0095.tar.gz
sigen-0a668c6c3c1b461555c01ed254e0bb1b71fa0095.tar.xz
sigen-0a668c6c3c1b461555c01ed254e0bb1b71fa0095.zip
Add a signal for Arena to let the plugin know when to clean it up
Diffstat (limited to 'sigencore')
-rw-r--r--sigencore/Arena.cpp2
-rw-r--r--sigencore/Arena.h2
2 files changed, 4 insertions, 0 deletions
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<Client*> 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);