mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-11 02:28:18 +00:00
20930ce68b
also FrontLayer is ready to be implemented soon Signed-off-by: GreYFoXGTi <GreYFoXGTi@Gmail.com>
35 lines
973 B
C++
35 lines
973 B
C++
#ifndef GAME_LAYERS_H
|
|
#define GAME_LAYERS_H
|
|
|
|
#include <engine/map.h>
|
|
#include <game/mapitems.h>
|
|
|
|
class CLayers
|
|
{
|
|
int m_GroupsNum;
|
|
int m_GroupsStart;
|
|
int m_LayersNum;
|
|
int m_LayersStart;
|
|
CMapItemGroup *m_pGameGroup;
|
|
CMapItemLayerTilemap *m_pGameLayer;
|
|
CMapItemLayerTilemap *m_pTeleLayer;
|
|
CMapItemLayerTilemap *m_pSpeedupLayer;
|
|
CMapItemLayerTilemap *m_pFrontLayer;
|
|
class IMap *m_pMap;
|
|
|
|
public:
|
|
CLayers();
|
|
void Init(class IKernel *pKernel);
|
|
int NumGroups() const { return m_GroupsNum; };
|
|
class IMap *Map() const { return m_pMap; };
|
|
CMapItemGroup *GameGroup() const { return m_pGameGroup; };
|
|
CMapItemLayerTilemap *GameLayer() const { return m_pGameLayer; };
|
|
CMapItemLayerTilemap *TeleLayer() const { return m_pTeleLayer; }
|
|
CMapItemLayerTilemap *SpeedupLayer() const { return m_pSpeedupLayer; }
|
|
CMapItemLayerTilemap *FrontLayer() const { return m_pFrontLayer; }
|
|
CMapItemGroup *GetGroup(int Index) const;
|
|
CMapItemLayer *GetLayer(int Index) const;
|
|
};
|
|
|
|
#endif
|