diff options
-rw-r--r-- | game/GameScene.cpp | 4 | ||||
-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: |