Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move gameFile and gameDetails classes to their own files
- Loading branch information
Showing
8 changed files
with
102 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef GAMEDETAILS_H | ||
#define GAMEDETAILS_H | ||
|
||
#include "globalconstants.h" | ||
#include "gamefile.h" | ||
|
||
#include <iostream> | ||
#include <vector> | ||
|
||
class gameDetails | ||
{ | ||
public: | ||
std::vector<gameFile> extras; | ||
std::vector<gameFile> installers; | ||
std::vector<gameFile> patches; | ||
std::vector<gameFile> languagepacks; | ||
std::vector<gameDetails> dlcs; | ||
std::string gamename; | ||
std::string title; | ||
std::string icon;; | ||
protected: | ||
private: | ||
}; | ||
|
||
#endif // GAMEDETAILS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ifndef GAMEFILE_H | ||
#define GAMEFILE_H | ||
|
||
#include "globalconstants.h" | ||
|
||
#include <iostream> | ||
#include <vector> | ||
|
||
class gameFile | ||
{ | ||
public: | ||
gameFile(const int& t_updated, const std::string& t_id, const std::string& t_name, const std::string& t_path, const std::string& t_size, const unsigned int& t_language = GlobalConstants::LANGUAGE_EN, const unsigned int& t_platform = GlobalConstants::PLATFORM_WINDOWS, const int& t_silent = 0); | ||
int updated; | ||
std::string id; | ||
std::string name; | ||
std::string path; | ||
std::string size; | ||
unsigned int platform; | ||
unsigned int language; | ||
int silent; | ||
virtual ~gameFile(); | ||
protected: | ||
private: | ||
}; | ||
|
||
#endif // GAMEFILE_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include "gamedetails.h" | ||
|
||
/*gameDetails::gameDetails() | ||
{ | ||
//ctor | ||
} | ||
gameDetails::~gameDetails() | ||
{ | ||
//dtor | ||
}*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include "gamefile.h" | ||
|
||
gameFile::gameFile(const int& t_updated, const std::string& t_id, const std::string& t_name, const std::string& t_path, const std::string& t_size, const unsigned int& t_language, const unsigned int& t_platform, const int& t_silent) | ||
{ | ||
this->updated = t_updated; | ||
this->id = t_id; | ||
this->name = t_name; | ||
this->path = t_path; | ||
this->size = t_size; | ||
this->platform = t_platform; | ||
this->language = t_language; | ||
this->silent = t_silent; | ||
} | ||
|
||
gameFile::~gameFile() | ||
{ | ||
//dtor | ||
} |