summaryrefslogtreecommitdiff
path: root/src/effectmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/effectmanager.cpp')
-rw-r--r--src/effectmanager.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/effectmanager.cpp b/src/effectmanager.cpp
index 0a04c33d..f004a450 100644
--- a/src/effectmanager.cpp
+++ b/src/effectmanager.cpp
@@ -1,8 +1,9 @@
/*
- * The Mana World
- * Copyright 2008 The Mana World Development Team
+ * An effects manager
+ * Copyright (C) 2008 Fate <fate.tmw@googlemail.com>
+ * Copyright (C) 2008 Chuck Miller <shadowmil@gmail.com>
*
- * This file is part of Aethyra.
+ * This file is part of The Mana World.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -40,7 +41,7 @@ EffectManager::EffectManager()
else
{
logger->log("Effects are now loading");
- }
+ }
for_each_xml_child_node(node, root)
{
@@ -70,15 +71,15 @@ bool EffectManager::trigger(int id, Being* being)
if ((*i).id == id)
{
rValue = true;
- if((*i).GFX != "")
+ if (!(*i).GFX.empty())
{
Particle *selfFX;
selfFX = particleEngine->addEffect((*i).GFX, 0, 0);
being->controlParticle(selfFX);
}
- if((*i).SFX != "")
+ if (!(*i).SFX.empty())
sound.playSfx((*i).SFX);
- break;
+ break;
}
}
return rValue;
@@ -92,13 +93,12 @@ bool EffectManager::trigger(int id, int x, int y)
if ((*i).id == id)
{
rValue = true;
- if((*i).GFX != "")
+ if (!(*i).GFX.empty())
particleEngine->addEffect((*i).GFX, x, y);
- if((*i).SFX != "")
+ if (!(*i).SFX.empty())
sound.playSfx((*i).SFX);
- break;
+ break;
}
}
return rValue;
}
-