diff options
| author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-01 19:02:28 +0100 | 
|---|---|---|
| committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-01 19:02:28 +0100 | 
| commit | 221b08e07246e84587b4144eca5564ce9ad3a20a (patch) | |
| tree | d46a71a331ff51a92c1c332e57e0a7c88851a713 /frontend/GameData.h | |
| parent | ca3e80a5b474d99391c253d3173117e955e33a20 (diff) | |
implement leaderboard functionality
Diffstat (limited to 'frontend/GameData.h')
| -rw-r--r-- | frontend/GameData.h | 9 | 
1 files changed, 5 insertions, 4 deletions
diff --git a/frontend/GameData.h b/frontend/GameData.h index 81e16c1..0d7577d 100644 --- a/frontend/GameData.h +++ b/frontend/GameData.h @@ -13,12 +13,13 @@ public:  	static GameData & get_instance();  public: -	Enemy * create_enemy(const std::string & name); -	Object * create_object(const std::string & name); -	Location * create_location(const std::string & name); +	Enemy * create_enemy(const std::string & name) const; +	Object * create_object(const std::string & name) const; +	Location * create_location(const std::string & name) const;  public: -	void leaderbord_add(const std::string & name, unsigned int gold); +	void leaderbord_add(const std::string & name, unsigned int gold) const; +	void leaderbord_print() const;  	std::vector<std::string> random_locations(unsigned count = 1);  private:  |