From d2c00723c8d4a27159ed119093fc4d318249c1a3 Mon Sep 17 00:00:00 2001 From: elnexreal <40328573+elnexreal@users.noreply.github.com> Date: Tue, 9 Jul 2024 03:45:25 -0300 Subject: [PATCH] moved `PlayingCard` to `/ui` --- CMakeLists.txt | 1 + src/main.cpp | 2 +- src/{ => ui}/PlayingCard.cpp | 0 src/{ => ui}/PlayingCard.hpp | 20 ++++++++++---------- 4 files changed, 12 insertions(+), 11 deletions(-) rename src/{ => ui}/PlayingCard.cpp (100%) rename src/{ => ui}/PlayingCard.hpp (96%) diff --git a/CMakeLists.txt b/CMakeLists.txt index dfec063..0e806d2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,7 @@ project(MenuLoopRandomizer VERSION 1.0.0) file(GLOB SOURCES src/*.cpp + src/ui/*.cpp ) set(GEODE_BINDINGS_REPO_PATH ${CMAKE_SOURCE_DIR}/bindings) diff --git a/src/main.cpp b/src/main.cpp index 1170fab..597dace 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,5 +1,5 @@ -#include "PlayingCard.hpp" #include "SongManager.hpp" +#include "ui/PlayingCard.hpp" #include #include #include diff --git a/src/PlayingCard.cpp b/src/ui/PlayingCard.cpp similarity index 100% rename from src/PlayingCard.cpp rename to src/ui/PlayingCard.cpp diff --git a/src/PlayingCard.hpp b/src/ui/PlayingCard.hpp similarity index 96% rename from src/PlayingCard.hpp rename to src/ui/PlayingCard.hpp index 745e990..9618faf 100644 --- a/src/PlayingCard.hpp +++ b/src/ui/PlayingCard.hpp @@ -1,11 +1,11 @@ -#pragma once - -class PlayingCard : public cocos2d::CCNode { - protected: - bool init(gd::string, gd::string); - - public: - static PlayingCard *create(gd::string, gd::string); - cocos2d::CCPoint position; - const cocos2d::CCPoint cardSize = {380.0f, 55.0f}; +#pragma once + +class PlayingCard : public cocos2d::CCNode { + protected: + bool init(gd::string, gd::string); + + public: + static PlayingCard *create(gd::string, gd::string); + cocos2d::CCPoint position; + const cocos2d::CCPoint cardSize = {380.0f, 55.0f}; }; \ No newline at end of file