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_MAPITEMS_H
4 #define GAME_MAPITEMS_H
10 LAYERTYPE_GAME
, // not used
14 MAPITEMTYPE_VERSION
=0,
20 MAPITEMTYPE_ENVPOINTS
,
36 ENTITY_FLAGSTAND_BLUE
,
39 ENTITY_WEAPON_SHOTGUN
,
40 ENTITY_WEAPON_GRENADE
,
57 ENTITY_OFFSET
=255-16*4,
62 int x
, y
; // 22.10 fixed point
74 CPoint m_aTexcoords
[4];
86 unsigned char m_Index
;
87 unsigned char m_Flags
;
89 unsigned char m_Reserved
;
102 struct CMapItemGroup_v1
115 struct CMapItemGroup
: public CMapItemGroup_v1
117 enum { CURRENT_VERSION
=2 };
133 struct CMapItemLayerTilemap
135 CMapItemLayer m_Layer
;
144 int m_ColorEnvOffset
;
150 struct CMapItemLayerQuads
152 CMapItemLayer m_Layer
;
160 struct CMapItemVersion
169 int m_aValues
[4]; // 1-4 depending on envelope (22.10 fixed point)
171 bool operator<(const CEnvPoint
&Other
) { return m_Time
< Other
.m_Time
; }
174 struct CMapItemEnvelope