summaryrefslogtreecommitdiff
path: root/src/actorsprite.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-04-09 00:03:44 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-04-09 17:54:12 +0200
commit30d4b0adf4f17f05d1d62fc3428c896ef1079b6b (patch)
treeacc6dab5d6894a949df3ab4d913ef72a1b1ebdca /src/actorsprite.cpp
parentb499cf0c03f2589d36a1df14c81530347243940a (diff)
downloadmana-30d4b0adf4f17f05d1d62fc3428c896ef1079b6b.tar.gz
mana-30d4b0adf4f17f05d1d62fc3428c896ef1079b6b.tar.bz2
mana-30d4b0adf4f17f05d1d62fc3428c896ef1079b6b.tar.xz
mana-30d4b0adf4f17f05d1d62fc3428c896ef1079b6b.zip
Moved Events to Mana::Event::Type
Acked-by: Jared Adams
Diffstat (limited to 'src/actorsprite.cpp')
-rw-r--r--src/actorsprite.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/actorsprite.cpp b/src/actorsprite.cpp
index e43d94e1..ea2b61c9 100644
--- a/src/actorsprite.cpp
+++ b/src/actorsprite.cpp
@@ -60,7 +60,7 @@ ActorSprite::~ActorSprite()
mUsedTargetCursor = NULL;
// Notify listeners of the destruction.
- Mana::Event event(EVENT_DESTROYED);
+ Mana::Event event(Mana::Event::Destroyed);
event.setActor("source", this);
event.trigger(CHANNEL_ACTORSPRITE);
}
@@ -256,7 +256,7 @@ void ActorSprite::updateStunMode(int oldMode, int newMode)
{
if (this == player_node)
{
- Mana::Event event(EVENT_STUN);
+ Mana::Event event(Mana::Event::Stun);
event.setInt("oldMode", oldMode);
event.setInt("newMode", newMode);
event.trigger(CHANNEL_ACTORSPRITE);
@@ -270,7 +270,7 @@ void ActorSprite::updateStatusEffect(int index, bool newStatus)
{
if (this == player_node)
{
- Mana::Event event(EVENT_UPDATESTATUSEFFECT);
+ Mana::Event event(Mana::Event::UpdateStatusEffect);
event.setInt("index", index);
event.setBool("newStatus", newStatus);
event.trigger(CHANNEL_ACTORSPRITE);