summaryrefslogtreecommitdiff
path: root/src/actorsprite.cpp
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2010-11-11 23:12:29 -0500
committerChuck Miller <shadowmil@gmail.com>2010-11-11 23:12:29 -0500
commita4640305fd0d88c6332112712aa69e496368e01b (patch)
tree0f039b331026ca2b9718a920b24e2344f9e56b25 /src/actorsprite.cpp
parent5727a2d9eeb0688a16e5b7fe32f6d9836c4f7a4e (diff)
downloadmana-a4640305fd0d88c6332112712aa69e496368e01b.tar.gz
mana-a4640305fd0d88c6332112712aa69e496368e01b.tar.bz2
mana-a4640305fd0d88c6332112712aa69e496368e01b.tar.xz
mana-a4640305fd0d88c6332112712aa69e496368e01b.zip
Replace Event names with enums instead of strings
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 6120ef08..df568d72 100644
--- a/src/actorsprite.cpp
+++ b/src/actorsprite.cpp
@@ -61,7 +61,7 @@ ActorSprite::~ActorSprite()
mUsedTargetCursor = NULL;
// Notify listeners of the destruction.
- Mana::Event event("Destroyed");
+ Mana::Event event(EVENT_DESTROYED);
event.setActor("source", this);
event.trigger(CHANNEL_ACTORSPRITE);
}
@@ -257,7 +257,7 @@ void ActorSprite::updateStunMode(int oldMode, int newMode)
{
if (this == player_node)
{
- Mana::Event event("Stun");
+ Mana::Event event(EVENT_STUN);
event.setInt("oldMode", oldMode);
event.setInt("newMode", newMode);
event.trigger(CHANNEL_ACTORSPRITE);
@@ -271,7 +271,7 @@ void ActorSprite::updateStatusEffect(int index, bool newStatus)
{
if (this == player_node)
{
- Mana::Event event("UpdateStatusEffect");
+ Mana::Event event(EVENT_UPDATESTATUSEFFECT);
event.setInt("index", index);
event.setBool("newStatus", newStatus);
event.trigger(CHANNEL_ACTORSPRITE);