From aa5a27865db092c46bed216c090e7a90860699a4 Mon Sep 17 00:00:00 2001 From: Brett Date: Mon, 17 Mar 2025 13:09:40 -0400 Subject: [PATCH] reorder so it can compile --- CMakeLists.txt | 2 +- include/game.h | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b63df56..18e0ba0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,7 +51,7 @@ macro(blt_add_project name source type) project(tower-defense) endmacro() -project(tower-defense VERSION 0.0.13) +project(tower-defense VERSION 0.0.14) option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF) option(ENABLE_UBSAN "Enable the ub sanitizer" OFF) diff --git a/include/game.h b/include/game.h index 85b7ede..3758757 100644 --- a/include/game.h +++ b/include/game.h @@ -32,16 +32,6 @@ namespace td private: }; - class event_t - { - event_handler_t handler; - std::string signature; - public: - void callHandler(void* target) { handler.call(target); } - private: - - }; - class event_handler_t { // I don't want to keep the parameter as a void pointer, maybe it would be nice to have a gameObject class or sumthing, @@ -55,6 +45,16 @@ namespace td private: }; + class event_t + { + event_handler_t handler; + std::string signature; + public: + void callHandler(void* target) { handler.call(target); } + private: + + }; + class event_scheduler_t { public: