/*********************************************************************
*	CGameIntro
*	HEADER FILE
*	Autor:	Michal Jirouš
*	Datum: 16.7.2008
*	Soubor: intro.h
*	Popis: Nacita seznam filmu a pomoci prehravace OggPlayer je postupne prehrava
*			v poradi, v jakem jsou zapsany v konfiguracnim souboru.
**********************************************************************/

#ifndef __INTRO_H__
#define __INTRO_H__

#include "oggplayer.h"
#include <queue>
#include <string>

class CGameIntro
{
	std::queue<std::string> m_fileQueue;
	OggPlayer m_Player;
	bool m_bIsPlaying;
	bool m_bIntroFinnished;
	void loadFiles( const char * filename );
public:
	CGameIntro();
	void init( SDL_Surface *surface, const char * filename );
	void run();		//loop control
	void draw();
	void next();
	void controller( SDL_Event &event );
	void main_loop();
};

extern CGameIntro gameIntro;

#endif

