From 586a774cde49f60cd671f0fd0cce8cf2051311db Mon Sep 17 00:00:00 2001 From: Alan Youngblood Date: Mon, 2 Aug 2021 18:18:04 -0400 Subject: [PATCH] cleanup on aisle everywhere --- src/game/Collision.cpp | 5 ----- src/game/Collision.h | 1 - src/game/Main.cpp | 5 +---- src/game/StateMachine.cpp | 8 -------- 4 files changed, 1 insertion(+), 18 deletions(-) diff --git a/src/game/Collision.cpp b/src/game/Collision.cpp index 600f8f5..78430d9 100644 --- a/src/game/Collision.cpp +++ b/src/game/Collision.cpp @@ -26,11 +26,6 @@ bool Collision::AABB(const ColliderComponent& colA, const ColliderComponent& col { if(AABB(colA.collider, colB.collider)) { -// std::cout << colA.tag << " hit: " << colB.tag << std::endl; -// if(recA.x + recA.w >= recB.x) { printf("LeftCollision"); } -// if(recB.x + recB.w >= recA.x) { printf("RightCollision"); } -// if(recA.y + recA.h >= recB.y) { printf("TopCollision"); } -// if(recB.y + recB.h >= recA.y) { printf("BottomCollision"); } return true; } else diff --git a/src/game/Collision.h b/src/game/Collision.h index b64aef7..b3c055f 100644 --- a/src/game/Collision.h +++ b/src/game/Collision.h @@ -18,7 +18,6 @@ class Collision public: static bool AABB(const SDL_Rect& recA, const SDL_Rect& recB); static bool AABB(const ColliderComponent& colA, const ColliderComponent& colB); -// void showColType(); }; diff --git a/src/game/Main.cpp b/src/game/Main.cpp index f3a9316..1da0b1d 100644 --- a/src/game/Main.cpp +++ b/src/game/Main.cpp @@ -30,7 +30,6 @@ int main(int argc, const char * argv[]) std::ifstream fin(configPath); if(fin.is_open()){ -// std::cout<<"config.json is opened successfully"<*pStateMap[currentState]; -// unsigned char state = StateMachine.currentState; -// return state; -// }