/* # ______ ____ ___ # | \/ ____| |___| # | | | \ | | #----------------------------------------------------------------------- # Copyright 2020, tyra - https://github.com/h4570/tyra # Licenced under Apache License 2.0 # Sandro Sobczyński */ #ifndef _FLOOR_MANAGER_ #define _FLOOR_MANAGER_ class Player; // Forward definition #include #include #include #include "../objects/floor.hpp" /** Class which is maintaining floors objects */ class FloorManager { public: FloorManager(int t_floorAmount); ~FloorManager(); Floor floors[144]; // Temp change it also in floors.cpp u32 floorAmount; void update(Player &t_player); void onAudioTick(); private: u8 audioOffset, audioMode; u32 audioTick; Point *spirals; void calcSpiral(int X, int Y); void initFloors(); }; #endif