DDraceNetwork Docs
CItems Class Reference

#include <items.h>

Inheritance diagram for CItems:
[legend]
Collaboration diagram for CItems:
[legend]

Public Member Functions

virtual int Sizeof () const override
 
virtual void OnRender () override
 
virtual void OnInit () override
 
void ReconstructSmokeTrail (const CProjectileData *pCurrent, int DestroyTick)
 
- Public Member Functions inherited from CComponent
virtual ~CComponent ()
 
virtual int Sizeof () const =0
 
class CGameClientGameClient () const
 
class IClientClient () const
 
virtual void OnStateChange (int NewState, int OldState)
 
virtual void OnConsoleInit ()
 
virtual void OnInit ()
 
virtual void OnShutdown ()
 
virtual void OnReset ()
 
virtual void OnWindowResize ()
 
virtual void OnRefreshSkins ()
 
virtual void OnRender ()
 
virtual void OnNewSnapshot ()
 
virtual void OnRelease ()
 
virtual void OnMapLoad ()
 
virtual void OnMessage (int Msg, void *pRawMsg)
 
virtual bool OnCursorMove (float x, float y, IInput::ECursorType CursorType)
 
virtual bool OnInput (const IInput::CEvent &Event)
 

Private Member Functions

void RenderProjectile (const CProjectileData *pCurrent, int ItemId)
 
void RenderPickup (const CNetObj_Pickup *pPrev, const CNetObj_Pickup *pCurrent, bool IsPredicted=false)
 
void RenderFlag (const CNetObj_Flag *pPrev, const CNetObj_Flag *pCurrent, const CNetObj_GameData *pPrevGameData, const CNetObj_GameData *pCurGameData)
 
void RenderLaser (const CLaserData *pCurrent, bool IsPredicted=false)
 

Private Attributes

int m_ItemsQuadContainerIndex
 
int m_BlueFlagOffset
 
int m_RedFlagOffset
 
int m_PickupHealthOffset
 
int m_PickupArmorOffset
 
int m_aPickupWeaponOffset [NUM_WEAPONS]
 
int m_PickupNinjaOffset
 
int m_aPickupWeaponArmorOffset [4]
 
int m_aProjectileOffset [NUM_WEAPONS]
 
int m_aParticleSplatOffset [3]
 

Additional Inherited Members

- Protected Member Functions inherited from CComponent
class IKernelKernel () const
 
class IEngineEngine () const
 
class IGraphicsGraphics () const
 
class ITextRenderTextRender () const
 
class IInputInput () const
 
class IStorageStorage () const
 
class CUiUi () const
 
class ISoundSound () const
 
class CRenderToolsRenderTools () const
 
class IConfigManagerConfigManager () const
 
class CConfigConfig () const
 
class IConsoleConsole () const
 
class IDemoPlayerDemoPlayer () const
 
class IDemoRecorderDemoRecorder (int Recorder) const
 
class IFavoritesFavorites () const
 
class IServerBrowserServerBrowser () const
 
class CLayersLayers () const
 
class CCollisionCollision () const
 
int64_t time () const
 
float LocalTime () const
 
class IHttpHttp () const
 
- Protected Attributes inherited from CComponent
CGameClientm_pClient
 

Member Function Documentation

◆ OnInit()

void CItems::OnInit ( )
overridevirtual

Called to let the components run initialization code.

Reimplemented from CComponent.

◆ OnRender()

void CItems::OnRender ( )
overridevirtual

Called when the component should get rendered.

The render order depends on the component insertion order.

Reimplemented from CComponent.

◆ ReconstructSmokeTrail()

void CItems::ReconstructSmokeTrail ( const CProjectileData pCurrent,
int  DestroyTick 
)

◆ RenderFlag()

void CItems::RenderFlag ( const CNetObj_Flag pPrev,
const CNetObj_Flag pCurrent,
const CNetObj_GameData pPrevGameData,
const CNetObj_GameData pCurGameData 
)
private

◆ RenderLaser()

void CItems::RenderLaser ( const CLaserData pCurrent,
bool  IsPredicted = false 
)
private

◆ RenderPickup()

void CItems::RenderPickup ( const CNetObj_Pickup pPrev,
const CNetObj_Pickup pCurrent,
bool  IsPredicted = false 
)
private

◆ RenderProjectile()

void CItems::RenderProjectile ( const CProjectileData pCurrent,
int  ItemId 
)
private

◆ Sizeof()

virtual int CItems::Sizeof ( ) const
inlineoverridevirtual

Gets the size of the non-abstract component.

Implements CComponent.

Member Data Documentation

◆ m_aParticleSplatOffset

int CItems::m_aParticleSplatOffset[3]
private

◆ m_aPickupWeaponArmorOffset

int CItems::m_aPickupWeaponArmorOffset[4]
private

◆ m_aPickupWeaponOffset

int CItems::m_aPickupWeaponOffset[NUM_WEAPONS]
private

◆ m_aProjectileOffset

int CItems::m_aProjectileOffset[NUM_WEAPONS]
private

◆ m_BlueFlagOffset

int CItems::m_BlueFlagOffset
private

◆ m_ItemsQuadContainerIndex

int CItems::m_ItemsQuadContainerIndex
private

◆ m_PickupArmorOffset

int CItems::m_PickupArmorOffset
private

◆ m_PickupHealthOffset

int CItems::m_PickupHealthOffset
private

◆ m_PickupNinjaOffset

int CItems::m_PickupNinjaOffset
private

◆ m_RedFlagOffset

int CItems::m_RedFlagOffset
private

The documentation for this class was generated from the following files: