ES-DE/src/GameData.h

37 lines
776 B
C
Raw Normal View History

#ifndef _GAMEDATA_H_
#define _GAMEDATA_H_
#include <string>
#include "FileData.h"
2013-08-14 12:16:49 +00:00
#include "MetaData.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(const std::string& path, const MetaDataList& metadata);
2013-08-14 12:16:49 +00:00
const std::string& getName() const override;
const std::string& getPath() const override;
void incTimesPlayed();
void lastPlayedNow();
std::string getBashPath() const;
std::string getBaseName() const;
std::string getCleanName() const;
2013-08-14 12:16:49 +00:00
bool isFolder() const override;
MetaDataList* metadata();
private:
2013-08-14 12:16:49 +00:00
const std::string mPath;
const std::string mBaseName;
2013-08-14 12:16:49 +00:00
MetaDataList mMetaData;
};
#endif