mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
1446d0980b
* Version 1.098a Conflicts: bam.lua src/game/client/gameclient.h src/game/mapitems.h
32 lines
875 B
C++
32 lines
875 B
C++
/* (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. */
|
|
#ifndef GAME_CLIENT_COMPONENTS_MAPLAYERS_H
|
|
#define GAME_CLIENT_COMPONENTS_MAPLAYERS_H
|
|
#include <game/client/component.h>
|
|
|
|
class CMapLayers : public CComponent
|
|
{
|
|
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;
|
|
|
|
void MapScreenToGroup(float CenterX, float CenterY, CMapItemGroup *pGroup, float Zoom = 1.0f);
|
|
static void EnvelopeEval(float TimeOffset, int Env, float *pChannels, void *pUser);
|
|
public:
|
|
enum
|
|
{
|
|
TYPE_BACKGROUND=0,
|
|
TYPE_FOREGROUND,
|
|
};
|
|
|
|
CMapLayers(int Type);
|
|
virtual void OnInit();
|
|
virtual void OnRender();
|
|
|
|
void EnvelopeUpdate();
|
|
};
|
|
|
|
#endif
|