Mana
Loading...
Searching...
No Matches
src
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
28
class
Being
;
29
30
class
EffectManager
31
{
32
public
:
33
struct
EffectDescription
34
{
35
std::string
particle
;
36
std::string
sfx
;
37
};
38
39
EffectManager
();
40
~EffectManager
();
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
62
extern
EffectManager
*
effectManager
;
Being
Definition
being.h:65
EffectManager
Definition
effectmanager.h:31
EffectManager::trigger
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...
Definition
effectmanager.cpp:65
EffectManager::EffectManager
EffectManager()
Definition
effectmanager.cpp:31
EffectManager::mEffects
std::map< int, EffectDescription > mEffects
Definition
effectmanager.h:59
EffectManager::~EffectManager
~EffectManager()
effectManager
EffectManager * effectManager
Definition
game.cpp:114
EffectManager::EffectDescription
Definition
effectmanager.h:34
EffectManager::EffectDescription::particle
std::string particle
Definition
effectmanager.h:35
EffectManager::EffectDescription::sfx
std::string sfx
Definition
effectmanager.h:36
Generated by
1.9.8