SuperTuxKart
Loading...
Searching...
No Matches
particle_kind_manager.hpp
1//
2// SuperTuxKart - a fun racing game with go-kart
3// Copyright (C) 2011-2015 Marianne Gagnon
4//
5// This program is free software; you can redistribute it and/or
6// modify it under the terms of the GNU General Public License
7// as published by the Free Software Foundation; either version 3
8// of the License, or (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// You should have received a copy of the GNU General Public License
16// along with this program; if not, write to the Free Software
17// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19#ifndef HEADER_PARTICLE_KIND_MANAGER_HPP
20#define HEADER_PARTICLE_KIND_MANAGER_HPP
21
22#include "utils/no_copy.hpp"
23#include "graphics/particle_kind.hpp"
24#include <string>
25#include <map>
26
27class Material;
28
34{
35private:
36
37 std::map<std::string, ParticleKind*> m_per_track_kinds;
38
39 std::map<std::string, ParticleKind*> m_kinds;
40 static ParticleKindManager* singleton;
41
43
44public:
45
46 virtual ~ParticleKindManager();
47
48 ParticleKind* getParticles(const std::string &name);
49
50 bool isGlobalParticleMaterial(Material* m) const;
51 void cleanUpTrackSpecificGfx();
52 void cleanup();
53
54 static ParticleKindManager* get();
55};
56#endif
57
58
Definition: material.hpp:48
Utility class, you can inherit from this class to disallow the assignment operator and copy construct...
Definition: no_copy.hpp:26
Holds and manages a list of all types of particles.
Definition: particle_kind_manager.hpp:34
type of particles
Definition: particle_kind.hpp:42