aboutsummaryrefslogtreecommitdiff
path: root/game
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-28 19:34:07 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-28 19:34:07 +0100
commit9afadbd2b2d2c5ec730154a426e83722e4c3da32 (patch)
tree8f986a805101f9387d1b3c4ebfa42573cd924df3 /game
parentfb096afbdf3d24f5b9f31626ddf8581033346f88 (diff)
renamed file
Diffstat (limited to 'game')
-rw-r--r--game/GameScene.cpp4
-rw-r--r--game/coins/CoinPool.cpp (renamed from game/coins/CoinSystem.cpp)4
-rw-r--r--game/coins/CoinPool.h (renamed from game/coins/CoinSystem.h)2
3 files changed, 5 insertions, 5 deletions
diff --git a/game/GameScene.cpp b/game/GameScene.cpp
index ad42421..bb64d08 100644
--- a/game/GameScene.cpp
+++ b/game/GameScene.cpp
@@ -4,7 +4,7 @@
#include "PlayerSubScene.h"
#include "StartGameScript.h"
#include "coins/CoinSubScene.h"
-#include "coins/CoinSystem.h"
+#include "coins/CoinPool.h"
#include "coins/CoinSystemScript.h"
#include <cmath>
@@ -58,7 +58,7 @@ void GameScene::load_scene() {
CoinSubScene coin;
coin.create(*this);
- CoinSystem coin_system;
+ CoinPool coin_system;
coin_system.create_coins(*this);
}
diff --git a/game/coins/CoinSystem.cpp b/game/coins/CoinPool.cpp
index 60d558b..5720c2f 100644
--- a/game/coins/CoinSystem.cpp
+++ b/game/coins/CoinPool.cpp
@@ -1,10 +1,10 @@
-#include "CoinSystem.h"
+#include "CoinPool.h"
#include "CoinSubScene.h"
using namespace crepe;
using namespace std;
-void CoinSystem::create_coins(crepe::Scene & scn) {
+void CoinPool::create_coins(crepe::Scene & scn) {
CoinSubScene coin;
while(coin.create(scn) < this->MAXIMUM_AMOUNT);
}
diff --git a/game/coins/CoinSystem.h b/game/coins/CoinPool.h
index 31e72f1..83058f7 100644
--- a/game/coins/CoinSystem.h
+++ b/game/coins/CoinPool.h
@@ -3,7 +3,7 @@
#include "api/Scene.h"
-class CoinSystem {
+class CoinPool {
public:
void create_coins(crepe::Scene & scn);
private: