![]() |
DDNet documentation
|
#include <pickup.h>
Public Member Functions | |
| void | Tick () override |
| CPickup (CGameWorld *pGameWorld, int Id, const CPickupData *pPickup) | |
| void | FillInfo (CNetObj_Pickup *pPickup) |
| bool | Match (CPickup *pPickup) |
| bool | InDDNetTile () const |
| int | Type () const |
| int | Subtype () const |
| int | Flags () const |
| CPickup (CGameWorld *pGameWorld, int Type, int SubType, int Layer, int Number, int Flags) | |
| void | Reset () override |
| void | Tick () override |
| void | TickPaused () override |
| void | Snap (int SnappingClient) override |
| int | Type () const |
| int | Subtype () const |
| Public Member Functions inherited from CEntity | |
| int | GetId () const |
| CEntity (CGameWorld *pGameWorld, int Objtype, vec2 Pos=vec2(0, 0), int ProximityRadius=0) | |
| virtual | ~CEntity () |
| std::vector< SSwitchers > & | Switchers () |
| CGameWorld * | GameWorld () |
| CTuningParams * | GlobalTuning () |
| CTuningParams * | TuningList () |
| CTuningParams * | GetTuning (int i) |
| class CCollision * | Collision () |
| CEntity * | TypeNext () |
| CEntity * | TypePrev () |
| const vec2 & | GetPos () const |
| float | GetProximityRadius () const |
| virtual bool | CanCollide (int ClientId) |
| virtual void | Destroy () |
| virtual void | PreTick () |
| virtual void | TickDeferred () |
| bool | GameLayerClipped (vec2 CheckPos) |
| CEntity * | NextEntity () |
| void | Keep () |
| CEntity () | |
| std::optional< int > | GetId () const |
| CEntity (CGameWorld *pGameWorld, int Objtype, bool RequestSnapId, vec2 Pos=vec2(0, 0), int ProximityRadius=0) | |
| virtual | ~CEntity () |
| std::vector< SSwitchers > & | Switchers () |
| CGameWorld * | GameWorld () |
| CTuningParams * | GlobalTuning () |
| CTuningParams * | TuningList () |
| CTuningParams * | GetTuning (int i) |
| class CConfig * | Config () |
| class CGameContext * | GameServer () |
| class IServer * | Server () |
| CCollision * | Collision () |
| CEntity * | TypeNext () |
| CEntity * | TypePrev () |
| const vec2 & | GetPos () const |
| float | GetProximityRadius () const |
| virtual void | Destroy () |
| virtual void | TickDeferred () |
| virtual void | SwapClients (int Client1, int Client2) |
| virtual ESaveResult | BlocksSave (int ClientId) |
| virtual int | GetOwnerId () const |
| bool | NetworkClipped (int SnappingClient) const |
| bool | NetworkClipped (int SnappingClient, vec2 CheckPos) const |
| bool | NetworkClippedLine (int SnappingClient, vec2 StartPos, vec2 EndPos) const |
| bool | GameLayerClipped (vec2 CheckPos) |
| virtual bool | CanCollide (int ClientId) |
| bool | GetNearestAirPos (vec2 Pos, vec2 PrevPos, vec2 *pOutPos) |
| bool | GetNearestAirPosPlayer (vec2 PlayerPos, vec2 *pOutPos) |
Static Public Attributes | |
| static const int | ms_CollisionExtraSize = 6 |
Private Member Functions | |
| void | Move () |
| void | Move () |
Private Attributes | |
| int | m_Type |
| int | m_Subtype |
| int | m_Flags |
| vec2 | m_Core |
| bool | m_IsCoreActive |
Additional Inherited Members | |
| Public Attributes inherited from CEntity | |
| float | m_ProximityRadius |
| vec2 | m_Pos |
| int | m_Number |
| int | m_Layer |
| int | m_SnapTicks |
| int | m_DestroyTick |
| int | m_LastRenderTick |
| CEntity * | m_pParent |
| CEntity * | m_pChild |
| Protected Attributes inherited from CEntity | |
| CGameWorld * | m_pGameWorld |
| bool | m_MarkedForDestroy |
| int | m_Id |
| int | m_ObjType |
| CPickup::CPickup | ( | CGameWorld * | pGameWorld, |
| int | Id, | ||
| const CPickupData * | pPickup ) |
| CPickup::CPickup | ( | CGameWorld * | pGameWorld, |
| int | Type, | ||
| int | SubType, | ||
| int | Layer, | ||
| int | Number, | ||
| int | Flags ) |
| void CPickup::FillInfo | ( | CNetObj_Pickup * | pPickup | ) |
|
inline |
|
inline |
| bool CPickup::Match | ( | CPickup * | pPickup | ) |
|
private |
|
private |
|
overridevirtual |
Reimplemented from CEntity.
|
overridevirtual |
Reimplemented from CEntity.
|
inline |
|
inline |
|
overridevirtual |
Reimplemented from CEntity.
|
overridevirtual |
Reimplemented from CEntity.
|
overridevirtual |
Reimplemented from CEntity.
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
static |