DDraceNetwork Docs
CPickup Class Reference

#include <pickup.h>

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

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 ()
 
int Type () const
 
int Subtype () const
 
 CPickup (CGameWorld *pGameWorld, int Type, int SubType=0, int Layer=0, int Number=0)
 
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 ()
 
CGameWorldGameWorld ()
 
CTuningParamsTuning ()
 
CTuningParamsTuningList ()
 
CTuningParamsGetTuning (int i)
 
class CCollisionCollision ()
 
CEntityTypeNext ()
 
CEntityTypePrev ()
 
const vec2GetPos () const
 
float GetProximityRadius () const
 
void Destroy ()
 
virtual void PreTick ()
 
virtual void Tick ()
 
virtual void TickDeferred ()
 
bool GameLayerClipped (vec2 CheckPos)
 
CEntityNextEntity ()
 
void Keep ()
 
 CEntity ()
 
int GetId () const
 
 CEntity (CGameWorld *pGameWorld, int Objtype, vec2 Pos=vec2(0, 0), int ProximityRadius=0)
 
virtual ~CEntity ()
 
std::vector< SSwitchers > & Switchers ()
 
CGameWorldGameWorld ()
 
CTuningParamsTuning ()
 
CTuningParamsTuningList ()
 
CTuningParamsGetTuning (int i)
 
class CConfigConfig ()
 
class CGameContextGameServer ()
 
class IServerServer ()
 
CCollisionCollision ()
 
CEntityTypeNext ()
 
CEntityTypePrev ()
 
const vec2GetPos () const
 
float GetProximityRadius () const
 
virtual void Destroy ()
 
virtual void Reset ()
 
virtual void Tick ()
 
virtual void TickDeferred ()
 
virtual void TickPaused ()
 
virtual void Snap (int SnappingClient)
 
virtual void PostSnap ()
 
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)
 
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
 
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
 
CEntitym_pParent
 
CEntitym_pChild
 
- Protected Attributes inherited from CEntity
CGameWorldm_pGameWorld
 
bool m_MarkedForDestroy
 
int m_Id
 
int m_ObjType
 

Constructor & Destructor Documentation

◆ CPickup() [1/2]

CPickup::CPickup ( CGameWorld pGameWorld,
int  Id,
const CPickupData pPickup 
)

◆ CPickup() [2/2]

CPickup::CPickup ( CGameWorld pGameWorld,
int  Type,
int  SubType = 0,
int  Layer = 0,
int  Number = 0 
)

Member Function Documentation

◆ FillInfo()

void CPickup::FillInfo ( CNetObj_Pickup pPickup)

◆ InDDNetTile()

bool CPickup::InDDNetTile ( )
inline

◆ Match()

bool CPickup::Match ( CPickup pPickup)

◆ Move() [1/2]

void CPickup::Move ( )
private

◆ Move() [2/2]

void CPickup::Move ( )
private

◆ Reset()

void CPickup::Reset ( )
overridevirtual

Reimplemented from CEntity.

◆ Snap()

void CPickup::Snap ( int  SnappingClient)
overridevirtual

Reimplemented from CEntity.

◆ Subtype() [1/2]

int CPickup::Subtype ( ) const
inline

◆ Subtype() [2/2]

int CPickup::Subtype ( ) const
inline

◆ Tick() [1/2]

void CPickup::Tick ( )
overridevirtual

Reimplemented from CEntity.

◆ Tick() [2/2]

void CPickup::Tick ( )
overridevirtual

Reimplemented from CEntity.

◆ TickPaused()

void CPickup::TickPaused ( )
overridevirtual

Reimplemented from CEntity.

◆ Type() [1/2]

int CPickup::Type ( ) const
inline

◆ Type() [2/2]

int CPickup::Type ( ) const
inline

Member Data Documentation

◆ m_Core

vec2 CPickup::m_Core
private

◆ m_IsCoreActive

bool CPickup::m_IsCoreActive
private

◆ m_Subtype

int CPickup::m_Subtype
private

◆ m_Type

int CPickup::m_Type
private

◆ ms_CollisionExtraSize

static const int CPickup::ms_CollisionExtraSize = 6
static

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