Fission FSN
Loading...
Searching...
No Matches
fsCRandomTune.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: fsCRandomTune.h
4*
5* Purpose: Play random tune from supplied list and store progress
6*
7*********************************************************************/
8
9#ifndef fsCRandomTunehdr
10#define fsCRandomTunehdr
11
12#include <vector>
13
14#include "fsCore/fsStr.h"
15
16class fsCResourceName;
17
18
20{
21public:
22
23 fsStr get() const;
24
25 fsCRandomTune(fsCResourceName const& pTuneList);
27
28protected:
29
30private:
31
32 struct fsSTune
33 {
34 fsSTune(fsStr const& pTune):
35 mFilename(pTune),
36 mPlayed(false)
37 {}
38
39 fsStr mFilename;
40 fsBool mPlayed;
41 };
42
43 std::vector<fsSTune> mTunes;
44};
45
46#endif
~fsCRandomTune()
Definition fsCRandomTune.cpp:37
fsCRandomTune(fsCResourceName const &pTuneList)
Definition fsCRandomTune.cpp:27
fsStr get() const
Definition fsCRandomTune.cpp:12
Definition fsCResourceName.h:32
Definition fsStr.h:23
bool fsBool
Definition fsBaseTypes.h:26