-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #291 from Laupetin/refactor/game-based-interfaces
refactor: interfaces with game implementations
- Loading branch information
Showing
69 changed files
with
343 additions
and
470 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 |
---|---|---|
@@ -1,17 +1,19 @@ | ||
#pragma once | ||
#include "Game/IGame.h" | ||
|
||
class GameIW3 : public IGame | ||
class GameIW3 final : public IGame | ||
{ | ||
std::vector<Zone*> m_zones; | ||
|
||
public: | ||
GameId GetId() override; | ||
std::string GetFullName() override; | ||
std::string GetShortName() override; | ||
void AddZone(Zone* zone) override; | ||
void RemoveZone(Zone* zone) override; | ||
std::vector<Zone*> GetZones() override; | ||
std::vector<GameLanguagePrefix> GetLanguagePrefixes() override; | ||
|
||
private: | ||
std::vector<Zone*> m_zones; | ||
}; | ||
|
||
extern GameIW3 g_GameIW3; |
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 |
---|---|---|
@@ -1,17 +1,19 @@ | ||
#pragma once | ||
#include "Game/IGame.h" | ||
|
||
class GameIW4 : public IGame | ||
class GameIW4 final : public IGame | ||
{ | ||
std::vector<Zone*> m_zones; | ||
|
||
public: | ||
GameId GetId() override; | ||
std::string GetFullName() override; | ||
std::string GetShortName() override; | ||
void AddZone(Zone* zone) override; | ||
void RemoveZone(Zone* zone) override; | ||
std::vector<Zone*> GetZones() override; | ||
std::vector<GameLanguagePrefix> GetLanguagePrefixes() override; | ||
|
||
private: | ||
std::vector<Zone*> m_zones; | ||
}; | ||
|
||
extern GameIW4 g_GameIW4; |
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 |
---|---|---|
@@ -1,17 +1,19 @@ | ||
#pragma once | ||
#include "Game/IGame.h" | ||
|
||
class GameIW5 : public IGame | ||
class GameIW5 final : public IGame | ||
{ | ||
std::vector<Zone*> m_zones; | ||
|
||
public: | ||
GameId GetId() override; | ||
std::string GetFullName() override; | ||
std::string GetShortName() override; | ||
void AddZone(Zone* zone) override; | ||
void RemoveZone(Zone* zone) override; | ||
std::vector<Zone*> GetZones() override; | ||
std::vector<GameLanguagePrefix> GetLanguagePrefixes() override; | ||
|
||
private: | ||
std::vector<Zone*> m_zones; | ||
}; | ||
|
||
extern GameIW5 g_GameIW5; |
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 |
---|---|---|
@@ -1,17 +1,19 @@ | ||
#pragma once | ||
#include "Game/IGame.h" | ||
|
||
class GameT5 : public IGame | ||
class GameT5 final : public IGame | ||
{ | ||
std::vector<Zone*> m_zones; | ||
|
||
public: | ||
GameId GetId() override; | ||
std::string GetFullName() override; | ||
std::string GetShortName() override; | ||
void AddZone(Zone* zone) override; | ||
void RemoveZone(Zone* zone) override; | ||
std::vector<Zone*> GetZones() override; | ||
std::vector<GameLanguagePrefix> GetLanguagePrefixes() override; | ||
|
||
private: | ||
std::vector<Zone*> m_zones; | ||
}; | ||
|
||
extern GameT5 g_GameT5; |
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 |
---|---|---|
@@ -1,17 +1,19 @@ | ||
#pragma once | ||
#include "Game/IGame.h" | ||
|
||
class GameT6 : public IGame | ||
class GameT6 final : public IGame | ||
{ | ||
std::vector<Zone*> m_zones; | ||
|
||
public: | ||
GameId GetId() override; | ||
std::string GetFullName() override; | ||
std::string GetShortName() override; | ||
void AddZone(Zone* zone) override; | ||
void RemoveZone(Zone* zone) override; | ||
std::vector<Zone*> GetZones() override; | ||
std::vector<GameLanguagePrefix> GetLanguagePrefixes() override; | ||
|
||
private: | ||
std::vector<Zone*> m_zones; | ||
}; | ||
|
||
extern GameT6 g_GameT6; |
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
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
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
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
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
Oops, something went wrong.