ddnet/src/game/client/components/maplayers.h

33 lines
876 B
C
Raw Normal View History

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_CLIENT_COMPONENTS_MAPLAYERS_H
#define GAME_CLIENT_COMPONENTS_MAPLAYERS_H
#include <game/client/component.h>
class CMapLayers : public CComponent
{
2010-05-29 07:25:38 +00:00
CLayers *m_pLayers; // todo refactor: maybe remove it and access it through client*
int m_Type;
int m_CurrentLocalTick;
int m_LastLocalTick;
bool m_EnvelopeUpdate;
2010-05-29 07:25:38 +00:00
2010-10-17 08:43:27 +00:00
void MapScreenToGroup(float CenterX, float CenterY, CMapItemGroup *pGroup, float Zoom = 1.0f);
2010-05-29 07:25:38 +00:00
public:
enum
{
TYPE_BACKGROUND=0,
TYPE_FOREGROUND,
};
CMapLayers(int Type);
virtual void OnInit();
virtual void OnRender();
void EnvelopeUpdate();
2014-10-12 14:12:13 +00:00
static void EnvelopeEval(float TimeOffset, int Env, float *pChannels, void *pUser);
2010-05-29 07:25:38 +00:00
};
#endif