Mana
Loading...
Searching...
No Matches
effectmanager.h
Go to the documentation of this file.
1/*
2 * An effects manager
3 * Copyright (C) 2008 Fate <fate.tmw@googlemail.com>
4 * Copyright (C) 2008 Chuck Miller <shadowmil@gmail.com>
5 * Copyright (C) 2009-2012 The Mana Developers
6 *
7 * This file is part of The Mana Client.
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 */
22
23#pragma once
24
25#include <map>
26#include <string>
27
28class Being;
29
31{
32 public:
34 {
35 std::string particle;
36 std::string sfx;
37 };
38
41
48 bool trigger(int id, Being *being, int rotation = 0);
49
56 bool trigger(int id, int x, int y, int rotation = 0);
57
58 private:
59 std::map<int, EffectDescription> mEffects;
60};
61
Definition being.h:65
bool trigger(int id, Being *being, int rotation=0)
Triggers a effect with the id, at the specified being, and with the given rotation in degree: 0° = Do...
std::map< int, EffectDescription > mEffects
EffectManager * effectManager
Definition game.cpp:114