OpenXcom
1.0
Open-source clone of the original X-Com
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
src
Ruleset
ExtraSounds.h
1
/*
2
* Copyright 2010-2014 OpenXcom Developers.
3
*
4
* This file is part of OpenXcom.
5
*
6
* OpenXcom is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* OpenXcom is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with OpenXcom. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
#ifndef OPENXCOM_EXTRASOUNDS_H
20
#define OPENXCOM_EXTRASOUNDS_H
21
22
#include <yaml-cpp/yaml.h>
23
24
namespace
OpenXcom
25
{
26
30
class
ExtraSounds
31
{
32
private
:
33
std::map<int, std::string> _sounds;
34
int
_modIndex;
35
public
:
37
ExtraSounds
();
39
virtual
~ExtraSounds
();
41
void
load
(
const
YAML::Node &node,
int
modIndex);
43
std::map<int, std::string> *
getSounds
();
45
int
getModIndex
();
46
};
47
48
}
49
50
#endif
OpenXcom::ExtraSounds::ExtraSounds
ExtraSounds()
Creates a blank external sound set.
Definition:
ExtraSounds.cpp:28
OpenXcom::ExtraSounds::getModIndex
int getModIndex()
get the mod index for this external sound set.
Definition:
ExtraSounds.cpp:63
OpenXcom::ExtraSounds
For adding a set of extra sound data to the game.
Definition:
ExtraSounds.h:30
OpenXcom::ExtraSounds::load
void load(const YAML::Node &node, int modIndex)
Loads the data from yaml.
Definition:
ExtraSounds.cpp:44
OpenXcom::ExtraSounds::getSounds
std::map< int, std::string > * getSounds()
Gets the list of sounds defined by this mod.
Definition:
ExtraSounds.cpp:54
OpenXcom::ExtraSounds::~ExtraSounds
virtual ~ExtraSounds()
Cleans up the external sound set.
Definition:
ExtraSounds.cpp:35
Generated on Fri Jun 13 2014 20:52:36 for OpenXcom by
1.8.7