DDraceNetwork Docs
layers.h
Go to the documentation of this file.
1/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
2/* If you are missing that file, acquire a complete release at teeworlds.com. */
3#ifndef GAME_LAYERS_H
4#define GAME_LAYERS_H
5
6class IMap;
7
8struct CMapItemGroup;
9struct CMapItemLayer;
11
13{
14public:
15 CLayers();
16 void Init(IMap *pMap, bool GameOnly);
17 void Unload();
18
19 int NumGroups() const { return m_GroupsNum; }
20 int NumLayers() const { return m_LayersNum; }
21 IMap *Map() const { return m_pMap; }
24 CMapItemGroup *GetGroup(int Index) const;
25 CMapItemLayer *GetLayer(int Index) const;
26
27 // DDRace
28
34
35private:
40
44
50
51 void InitTilemapSkip();
52};
53
54#endif
Definition: layers.h:13
CMapItemLayerTilemap * TeleLayer() const
Definition: layers.h:29
int NumGroups() const
Definition: layers.h:19
CLayers()
Definition: layers.cpp:9
int m_GroupsNum
Definition: layers.h:36
CMapItemLayerTilemap * m_pGameLayer
Definition: layers.h:42
CMapItemLayerTilemap * GameLayer() const
Definition: layers.h:23
int m_LayersNum
Definition: layers.h:38
int NumLayers() const
Definition: layers.h:20
IMap * Map() const
Definition: layers.h:21
CMapItemGroup * GetGroup(int Index) const
Definition: layers.cpp:171
IMap * m_pMap
Definition: layers.h:43
CMapItemLayerTilemap * m_pTuneLayer
Definition: layers.h:49
CMapItemLayerTilemap * m_pTeleLayer
Definition: layers.h:45
int m_LayersStart
Definition: layers.h:39
CMapItemGroup * GameGroup() const
Definition: layers.h:22
CMapItemLayerTilemap * SpeedupLayer() const
Definition: layers.h:30
CMapItemLayerTilemap * TuneLayer() const
Definition: layers.h:33
CMapItemLayerTilemap * m_pFrontLayer
Definition: layers.h:47
void Init(IMap *pMap, bool GameOnly)
Definition: layers.cpp:14
CMapItemGroup * m_pGameGroup
Definition: layers.h:41
void InitTilemapSkip()
Definition: layers.cpp:139
int m_GroupsStart
Definition: layers.h:37
CMapItemLayerTilemap * SwitchLayer() const
Definition: layers.h:32
void Unload()
Definition: layers.cpp:121
CMapItemLayerTilemap * m_pSpeedupLayer
Definition: layers.h:46
CMapItemLayerTilemap * FrontLayer() const
Definition: layers.h:31
CMapItemLayerTilemap * m_pSwitchLayer
Definition: layers.h:48
CMapItemLayer * GetLayer(int Index) const
Definition: layers.cpp:176
Definition: map.h:16
Definition: mapitems.h:298
Definition: mapitems.h:321
Definition: mapitems.h:314