DDraceNetwork Docs
items.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_CLIENT_COMPONENTS_ITEMS_H
4#define GAME_CLIENT_COMPONENTS_ITEMS_H
7
9class CLaserData;
10
11class CItems : public CComponent
12{
13 void RenderProjectile(const CProjectileData *pCurrent, int ItemId);
14 void RenderPickup(const CNetObj_Pickup *pPrev, const CNetObj_Pickup *pCurrent, bool IsPredicted = false);
15 void RenderFlag(const CNetObj_Flag *pPrev, const CNetObj_Flag *pCurrent, const CNetObj_GameData *pPrevGameData, const CNetObj_GameData *pCurGameData);
16 void RenderLaser(const CLaserData *pCurrent, bool IsPredicted = false);
17
19
20public:
21 virtual int Sizeof() const override { return sizeof(*this); }
22 virtual void OnRender() override;
23 virtual void OnInit() override;
24
25 void ReconstructSmokeTrail(const CProjectileData *pCurrent, int DestroyTick);
26
27private:
37};
38
39#endif
Definition: component.h:20
Definition: items.h:12
int m_aParticleSplatOffset[3]
Definition: items.h:36
virtual void OnRender() override
Definition: items.cpp:359
void RenderFlag(const CNetObj_Flag *pPrev, const CNetObj_Flag *pCurrent, const CNetObj_GameData *pPrevGameData, const CNetObj_GameData *pCurGameData)
Definition: items.cpp:199
void RenderPickup(const CNetObj_Pickup *pPrev, const CNetObj_Pickup *pCurrent, bool IsPredicted=false)
Definition: items.cpp:141
int m_aProjectileOffset[NUM_WEAPONS]
Definition: items.h:35
virtual void OnInit() override
Definition: items.cpp:544
int m_ItemsQuadContainerIndex
Definition: items.h:18
int m_aPickupWeaponArmorOffset[4]
Definition: items.h:34
void ReconstructSmokeTrail(const CProjectileData *pCurrent, int DestroyTick)
Definition: items.cpp:596
int m_PickupHealthOffset
Definition: items.h:30
int m_aPickupWeaponOffset[NUM_WEAPONS]
Definition: items.h:32
int m_PickupNinjaOffset
Definition: items.h:33
void RenderLaser(const CLaserData *pCurrent, bool IsPredicted=false)
Definition: items.cpp:241
void RenderProjectile(const CProjectileData *pCurrent, int ItemId)
Definition: items.cpp:26
int m_PickupArmorOffset
Definition: items.h:31
int m_BlueFlagOffset
Definition: items.h:28
int m_RedFlagOffset
Definition: items.h:29
virtual int Sizeof() const override
Definition: items.h:21
Definition: laser_data.h:13
Definition: projectile_data.h:14
@ NUM_WEAPONS
Definition: protocol.h:1257
Definition: protocol.h:405
Definition: protocol.h:426
Definition: protocol.h:396