43 lines
964 B
C++
43 lines
964 B
C++
/*
|
|
# ______ ____ ___
|
|
# | \/ ____| |___|
|
|
# | | | \ | |
|
|
#-----------------------------------------------------------------------
|
|
# Copyright 2020, tyra - https://github.com/h4570/tyra
|
|
# Licenced under Apache License 2.0
|
|
# Sandro Sobczyński <sandro.sobczynski@gmail.com>
|
|
*/
|
|
|
|
#ifndef _FLOOR_MANAGER_
|
|
#define _FLOOR_MANAGER_
|
|
|
|
class Player; // Forward definition
|
|
|
|
#include <models/math/point.hpp>
|
|
#include <modules/camera_base.hpp>
|
|
#include <models/audio_listener.hpp>
|
|
|
|
#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
|