![]() |
DDNet documentation
|
#include <items.h>
Public Member Functions | |
| int | Sizeof () const override |
| void | OnRender () override |
| void | OnInit () override |
| void | ReconstructSmokeTrail (const CProjectileData *pCurrent, int DestroyTick) |
| void | RenderLaser (vec2 From, vec2 Pos, ColorRGBA OuterColor, ColorRGBA InnerColor, float TicksBody, float TicksHead, int Type) const |
| Public Member Functions inherited from CComponent | |
| virtual void | OnStateChange (int NewState, int OldState) |
| virtual void | OnConsoleInit () |
| virtual void | OnShutdown () |
| virtual void | OnReset () |
| virtual void | OnWindowResize () |
| virtual void | OnUpdate () |
| 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) |
| virtual bool | OnTouchState (std::vector< IInput::CTouchFingerState > &vTouchFingerStates) |
| Public Member Functions inherited from CComponentInterfaces | |
| virtual void | OnInterfacesInit (CGameClient *pClient) |
| virtual | ~CComponentInterfaces ()=default |
Private Member Functions | |
| void | RenderProjectile (const CProjectileData *pCurrent, int ItemId, const CScreenRect &ScreenRect) |
| void | RenderPickup (const CNetObj_Pickup *pPrev, const CNetObj_Pickup *pCurrent, bool IsPredicted, int Flags) |
| void | RenderFlags () |
| 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] |
| int | m_DoorHeadOffset |
| int | m_PulleyHeadOffset |
| int | m_FreezeHeadOffset |
Additional Inherited Members | |
| Protected Member Functions inherited from CComponentInterfaces | |
| class CGameClient * | GameClient () const |
| class IClient * | Client () const |
| class IKernel * | Kernel () const |
| class IEngine * | Engine () const |
| class IGraphics * | Graphics () const |
| class ITextRender * | TextRender () const |
| class IInput * | Input () const |
| class IStorage * | Storage () const |
| class CUi * | Ui () const |
| class ISound * | Sound () const |
| class CRenderTools * | RenderTools () const |
| class CRenderMap * | RenderMap () const |
| class IConfigManager * | ConfigManager () const |
| class CConfig * | Config () const |
| class IConsole * | Console () const |
| class IDemoPlayer * | DemoPlayer () const |
| class IDemoRecorder * | DemoRecorder (int Recorder) const |
| class IFavorites * | Favorites () const |
| class IServerBrowser * | ServerBrowser () const |
| class CLayers * | Layers () const |
| class CCollision * | Collision () const |
| int64_t | time () const |
| float | LocalTime () const |
| class IHttp * | Http () const |
|
overridevirtual |
Called to let the components run initialization code.
Reimplemented from CComponent.
|
overridevirtual |
Called when the component should get rendered.
The render order depends on the component insertion order.
Reimplemented from CComponent.
| void CItems::ReconstructSmokeTrail | ( | const CProjectileData * | pCurrent, |
| int | DestroyTick ) |
|
private |
|
private |
|
private |
| void CItems::RenderLaser | ( | vec2 | From, |
| vec2 | Pos, | ||
| ColorRGBA | OuterColor, | ||
| ColorRGBA | InnerColor, | ||
| float | TicksBody, | ||
| float | TicksHead, | ||
| int | Type ) const |
|
private |
|
private |
|
inlineoverridevirtual |
Gets the size of the non-abstract component.
Implements CComponent.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |