2010-05-29 07:25:38 +00:00
|
|
|
#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;
|
2010-08-10 04:28:17 +00:00
|
|
|
CMapItemLayerTilemap *m_pTeleLayer;
|
|
|
|
CMapItemLayerTilemap *m_pSpeedupLayer;
|
2010-08-27 05:19:10 +00:00
|
|
|
CMapItemLayerTilemap *m_pFrontLayer;
|
2010-08-27 23:30:50 +00:00
|
|
|
CMapItemLayerTilemap *m_pSwitchLayer;
|
2010-05-29 07:25:38 +00:00
|
|
|
class IMap *m_pMap;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CLayers();
|
|
|
|
void Init(class IKernel *pKernel);
|
2010-08-25 14:15:59 +00:00
|
|
|
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; }
|
2010-08-10 04:28:17 +00:00
|
|
|
CMapItemLayerTilemap *TeleLayer() const { return m_pTeleLayer; }
|
|
|
|
CMapItemLayerTilemap *SpeedupLayer() const { return m_pSpeedupLayer; }
|
2010-08-27 05:19:10 +00:00
|
|
|
CMapItemLayerTilemap *FrontLayer() const { return m_pFrontLayer; }
|
2010-08-27 23:30:50 +00:00
|
|
|
CMapItemLayerTilemap *SwitchLayer() const { return m_pSwitchLayer; }
|
2010-05-29 07:25:38 +00:00
|
|
|
CMapItemGroup *GetGroup(int Index) const;
|
|
|
|
CMapItemLayer *GetLayer(int Index) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|