00001 /* 00002 * An effects manager 00003 * Copyright (C) 2008 Fate <fate.tmw@googlemail.com> 00004 * Copyright (C) 2008 Chuck Miller <shadowmil@gmail.com> 00005 * 00006 * This file is part of The Mana World. 00007 * 00008 * This program is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00021 */ 00022 00023 #ifndef EFFECT_MANAGER_H 00024 #define EFFECT_MANAGER_H 00025 00026 #include <list> 00027 #include <string> 00028 00029 class Being; 00030 00031 class EffectManager 00032 { 00033 public: 00034 struct EffectDescription 00035 { 00036 int id; 00037 std::string GFX; 00038 std::string SFX; 00039 }; 00040 00041 EffectManager(); 00042 ~EffectManager(); 00043 00048 bool trigger(int id, Being* being); 00049 00054 bool trigger(int id, int x, int y); 00055 00056 private: 00057 std::list<EffectDescription> mEffects; 00058 }; 00059 00060 extern EffectManager *effectManager; 00061 00062 #endif // EFFECT_MANAGER_H