19 #ifndef OPENXCOM_RESOURCEPACK_H
20 #define OPENXCOM_RESOURCEPACK_H
55 std::string _playingMusic;
57 std::map<std::string, Palette*> _palettes;
58 std::map<std::string, Font*> _fonts;
59 std::map<std::string, Surface*> _surfaces;
60 std::map<std::string, SurfaceSet*> _sets;
61 std::map<std::string, SoundSet*> _sounds;
62 std::list<Polygon*> _polygons;
63 std::list<Polyline*> _polylines;
64 std::map<std::string, Music*> _musics;
65 std::vector<Uint16> _voxelData;
86 void playMusic(
const std::string &name,
bool random =
false);
88 Sound *
getSound(
const std::string &set,
unsigned int sound)
const;
92 void setPalette(SDL_Color *colors,
int firstcolor = 0,
int ncolors = 256);
std::list< Polygon * > * getPolygons()
Gets the list of world polygons.
Definition: ResourcePack.cpp:122
Container for music tracks.
Definition: Music.h:32
virtual ~ResourcePack()
Cleans up the resource pack.
Definition: ResourcePack.cpp:47
Sound * getSound(const std::string &set, unsigned int sound) const
Gets a particular sound.
Definition: ResourcePack.cpp:217
Music * getMusic(const std::string &name) const
Gets a particular music.
Definition: ResourcePack.cpp:141
Container for sound effects.
Definition: Sound.h:32
void playMusic(const std::string &name, bool random=false)
Plays a particular music.
Definition: ResourcePack.cpp:187
Font * getFont(const std::string &name) const
Gets a particular font.
Definition: ResourcePack.cpp:90
std::list< Polyline * > * getPolylines()
Gets the list of world polylines.
Definition: ResourcePack.cpp:131
std::vector< Uint16 > * getVoxelData()
Gets list of voxel data.
Definition: ResourcePack.cpp:268
Container of a set of surfaces.
Definition: SurfaceSet.h:38
Takes care of loading and storing each character in a sprite font.
Definition: Font.h:40
SurfaceSet * getSurfaceSet(const std::string &name) const
Gets a particular surface set.
Definition: ResourcePack.cpp:112
Element that is blit (rendered) onto the screen.
Definition: Surface.h:39
Packs of external game media.
Definition: ResourcePack.h:50
Palette * getPalette(const std::string &name) const
Gets a particular palette.
Definition: ResourcePack.cpp:235
Container for palettes (sets of 8bpp colors).
Definition: Palette.h:33
void setPalette(SDL_Color *colors, int firstcolor=0, int ncolors=256)
Sets a new palette.
Definition: ResourcePack.cpp:247
Surface * getSurface(const std::string &name) const
Gets a particular surface.
Definition: ResourcePack.cpp:101
ResourcePack()
Create a new resource pack with a folder's contents.
Definition: ResourcePack.cpp:38
Music * getRandomMusic(const std::string &name) const
Gets a random music.
Definition: ResourcePack.cpp:159