# MusicPlayer Class Reference

`#include <classes.h>`

List of all members.

## Public Member Functions
void | loop ()
void | play (int mode)
int | getMode ()
void | changeMusic (int music)

## Detailed Description

Music Player- plays all music properly without anyone overlapping.

## Member Function Documentation

void MusicPlayer::changeMusic | ( | int | music | ) | `[inline]`

stops the current music, and then plays the new music of the mode changed.

int MusicPlayer::getMode | ( |  | ) | `[inline]`

Returns the current music mode.

void MusicPlayer::loop | ( |  | ) | `[inline]`

Main calls this loop, so that GDK can play the music. It checks the musicMode and makes it play the right music according to the appropiate action of the game.

void MusicPlayer::play | ( | int | mode | ) | `[inline]`

play- changes the music mode of the music object, so that it will loop a different music.

The documentation for this class was generated from the following file:

- C:/Documents and Settings/Adam Schwartz/My Documents/um/code/classes.h