From 72f04cc18113785b8f57d95254d28e7d64d584aa Mon Sep 17 00:00:00 2001 From: max-001 Date: Tue, 17 Dec 2024 08:53:03 +0100 Subject: Placed every class into seperate file --- src/example/Hallway.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/example/Hallway.h (limited to 'src/example/Hallway.h') diff --git a/src/example/Hallway.h b/src/example/Hallway.h new file mode 100644 index 0000000..f173313 --- /dev/null +++ b/src/example/Hallway.h @@ -0,0 +1,21 @@ +#pragma once + +#include + +namespace crepe { +class Scene; +class GameObject; +class Color; +} // namespace crepe + +class Hallway { +public: + float create(crepe::Scene & scn, float begin_x, unsigned int sector_num, + crepe::Color sector_color); + +private: + void add_lamp(crepe::GameObject & obj, crepe::vec2 offset, unsigned int fps = 10); + + void add_sector_number(crepe::GameObject & obj, crepe::vec2 offset, + unsigned int sector_num, crepe::Color sector_color); +}; -- cgit v1.2.3