OpenXcom  1.0
Open-source clone of the original X-Com
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
XcomResourcePack.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_XCOMRESOURCEPACK_H
20 #define OPENXCOM_XCOMRESOURCEPACK_H
21 
22 #include "ResourcePack.h"
23 #include "../Engine/Options.h"
24 
25 namespace OpenXcom
26 {
27 
28 class ExtraSprites;
29 class ExtraSounds;
30 class CatFile;
31 class GMCatFile;
32 class Music;
33 
38 {
39 public:
41  XcomResourcePack(std::vector<std::pair<std::string, ExtraSprites *> > extraSprites, std::vector<std::pair<std::string, ExtraSounds *> > extraSounds);
47  bool isImageFile(std::string extension);
49  Music *loadMusic(MusicFormat fmt, const std::string &file, int track, float volume, CatFile *adlibcat, CatFile *aintrocat, GMCatFile *gmcat);
50 };
51 
52 }
53 
54 #endif
Container for music tracks.
Definition: Music.h:32
MusicFormat
Music format preferences.
Definition: Options.h:37
~XcomResourcePack()
Cleans up the X-Com ruleset.
Definition: XcomResourcePack.cpp:738
Resource pack for the X-Com: UFO Defense game.
Definition: XcomResourcePack.h:37
bool isImageFile(std::string extension)
Checks if an extension is a valid image file.
Definition: XcomResourcePack.cpp:912
XcomResourcePack(std::vector< std::pair< std::string, ExtraSprites * > > extraSprites, std::vector< std::pair< std::string, ExtraSounds * > > extraSounds)
Creates the X-Com ruleset.
Definition: XcomResourcePack.cpp:79
void loadBattlescapeResources()
Loads battlescape specific resources.
Definition: XcomResourcePack.cpp:745
Music * loadMusic(MusicFormat fmt, const std::string &file, int track, float volume, CatFile *adlibcat, CatFile *aintrocat, GMCatFile *gmcat)
Loads a specified music file.
Definition: XcomResourcePack.cpp:953
Packs of external game media.
Definition: ResourcePack.h:50
Subclass of std::ifstream to handle CAT files.
Definition: CatFile.h:31
MIDI track.
Definition: GMCat.cpp:40
Subclass of CatFile to handle gm.cat files that contain MIDI music streams.
Definition: GMCat.h:34