ES-DE/src/GameData.h

36 lines
794 B
C
Raw Normal View History

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