2010-11-20 10:37:14 +00:00
|
|
|
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
|
|
|
|
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
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;
|
|
|
|
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; };
|
|
|
|
CMapItemGroup *GetGroup(int Index) const;
|
2011-04-13 18:37:12 +00:00
|
|
|
CMapItemLayer *GetLayer(int Index) const;
|
2010-05-29 07:25:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|