2012-07-20 16:14:09 +00:00
|
|
|
#ifndef _GAMEDATA_H_
|
|
|
|
#define _GAMEDATA_H_
|
|
|
|
|
|
|
|
#include <string>
|
2012-07-27 16:58:27 +00:00
|
|
|
#include "FileData.h"
|
2012-07-20 16:14:09 +00:00
|
|
|
#include "SystemData.h"
|
|
|
|
|
2012-09-07 21:44:07 +00:00
|
|
|
//This class holds information about a game: at the least, its name, system, and path. Additional information is optional and read by other classes.
|
2012-07-27 16:58:27 +00:00
|
|
|
class GameData : public FileData
|
2012-07-20 16:14:09 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
GameData(SystemData* system, std::string path, std::string name);
|
|
|
|
|
2012-08-02 01:43:55 +00:00
|
|
|
void set(std::string name = "", std::string description = "", std::string imagePath = "");
|
|
|
|
|
2012-07-20 16:14:09 +00:00
|
|
|
std::string getName();
|
2012-07-27 16:58:27 +00:00
|
|
|
std::string getPath();
|
2012-08-02 01:43:55 +00:00
|
|
|
std::string getBashPath();
|
|
|
|
|
|
|
|
std::string getDescription();
|
|
|
|
std::string getImagePath();
|
|
|
|
|
2012-07-27 16:58:27 +00:00
|
|
|
bool isFolder();
|
2012-07-20 16:14:09 +00:00
|
|
|
private:
|
|
|
|
SystemData* mSystem;
|
|
|
|
std::string mPath;
|
|
|
|
std::string mName;
|
2012-08-02 01:43:55 +00:00
|
|
|
|
|
|
|
//extra data
|
|
|
|
std::string mDescription;
|
|
|
|
std::string mImagePath;
|
2012-07-20 16:14:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|