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

34 lines
1.1 KiB
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_ITEMS_H
#define GAME_CLIENT_COMPONENTS_ITEMS_H
#include <game/client/component.h>
class CItems : public CComponent
{
2011-04-03 08:11:23 +00:00
enum
{
MAX_EXTRA_PROJECTILES=32,
};
2011-09-06 13:27:56 +00:00
CNetObj_Projectile m_aExtraProjectiles[MAX_EXTRA_PROJECTILES];
int m_NumExtraProjectiles;
void RenderProjectile(const CNetObj_Projectile *pCurrent, int ItemID);
2010-05-29 07:25:38 +00:00
void RenderPickup(const CNetObj_Pickup *pPrev, const CNetObj_Pickup *pCurrent);
2011-03-04 16:08:10 +00:00
void RenderFlag(const CNetObj_Flag *pPrev, const CNetObj_Flag *pCurrent, const CNetObj_GameData *pPrevGameData, const CNetObj_GameData *pCurGameData);
void RenderLaser(const struct CNetObj_Laser *pCurrent, bool IsPredicted = false);
int m_ItemsQuadContainerIndex;
2010-05-29 07:25:38 +00:00
public:
2011-04-03 08:11:23 +00:00
virtual void OnReset();
2010-05-29 07:25:38 +00:00
virtual void OnRender();
virtual void OnInit();
2011-04-03 08:11:23 +00:00
void AddExtraProjectile(CNetObj_Projectile *pProj);
void ReconstructSmokeTrail(const CNetObj_Projectile *pCurrent, int ItemID, int DestroyTick, int LifeSpan);
2010-05-29 07:25:38 +00:00
};
#endif