/*********************************************************************
*	Highscore
*	HEADER FILE
*	Autor:	Michal Jirouš
*	Datum: 14.7.2008
*	Soubor: game_highscore.h
*	Popis: Databaze nejlepsich dosazenych vysledku dle nazvu levelu
**********************************************************************/

#ifndef __HIGHSCORE_H_
#define __HIGHSCORE_H_

#include <string>
#include "SDL/SDL.h"
namespace highscore
{
	struct HighScoreInfo
	{
		std::string m_sPlayer;
		Uint32 m_uiTime;
		int m_ifileSum;
		size_t m_fileSize;
	};

	bool loadDatabase( const char *filename );	//nacte databazi = inicializace
	void setHighScore( std::string levelName, std::string playerName, Uint32 time );
	HighScoreInfo * getHighScore( std::string levelName );
};

#endif

