diff --git a/CMakeLists.txt b/CMakeLists.txt index e744090..c1e3e4a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,7 @@ FetchContent_Declare(json FetchContent_MakeAvailable(SFML json) -add_executable(main src/main.cpp src/Entity.cpp src/Game.cpp src/MazeMap.cpp src/ResourceManager.cpp src/Blinky.cpp src/Pinky.cpp src/Inky.cpp src/Clyde.cpp) +add_executable(main src/main.cpp src/Entity.cpp src/Game.cpp src/MazeMap.cpp src/ResourceManager.cpp src/Blinky.cpp src/Pinky.cpp src/Inky.cpp src/Clyde.cpp src/Ghost.cpp) target_compile_features(main PRIVATE cxx_std_17) target_link_libraries(main PRIVATE SFML::Graphics SFML::Audio nlohmann_json::nlohmann_json) diff --git a/src/Ghost.h b/src/Ghost.h index 2ae3cf2..fc4afcc 100644 --- a/src/Ghost.h +++ b/src/Ghost.h @@ -55,6 +55,8 @@ private: int boxBoundaryY; bool isVulnerable; Mode previousMode; // Mode to return to after vulnerable ends +protected: + sf::Vector2i targetTile; }; #endif