-
Notifications
You must be signed in to change notification settings - Fork 8
/
Music.hpp
56 lines (44 loc) · 908 Bytes
/
Music.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
// Music.hpp for music in /home/emirot_n//rendu/bomberman-2015-romera_t/projet
//
// Made by nolan emirot
// Login <[email protected]>
//
// Started on Fri May 25 14:01:33 2012 nolan emirot
// Last update Sun Jun 3 22:58:58 2012 nolan emirot
//
#ifndef __MUSIC_H__
#define __MUSIC_H__
#include <SFML/Audio.hpp>
#include <string>
#include <iostream>
class Music
{
public:
Music();
~Music();
void playSong(const char *s);
void stopSong();
void introS();
void menuS();
void bombS();
void powerUp();
void gameS();
void endS();
private:
sf::Sound *Soundintro_;
sf::SoundBuffer *Bufferintro_;
sf::Music *Soundbomb_;
sf::Music *Soundmenu_;
sf::Music *Soundpower_;
sf::Sound *Soundgame_;
sf::SoundBuffer *Buffergame_;
sf::Sound *Soundend_;
sf::SoundBuffer *Bufferend_;
};
typedef struct sM
{
const char *a;
void (Music::*f)();
}tM;
#endif