![]() |
DDNet documentation
|
#include <door.h>
Public Member Functions | |
| CDoor (CGameWorld *pGameWorld, int Id, const CLaserData *pData) | |
| void | ResetCollision () |
| bool | Match (const CDoor *pDoor) const |
| void | Read (const CLaserData *pData) |
| void | Destroy () override |
| CDoor (CGameWorld *pGameWorld, vec2 Pos, float Rotation, int Length, int Number) | |
| void | Reset () override |
| void | Snap (int SnappingClient) override |
| 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 | PreTick () |
| virtual void | Tick () |
| 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 | Tick () |
| virtual void | TickDeferred () |
| virtual void | TickPaused () |
| 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) |
Private Member Functions | |
| int | MapSide () const |
| int | MapLength (int Side) |
| void | ResetCollision () |
Private Attributes | |
| vec2 | m_To |
| vec2 | m_Direction |
| int | m_Length |
| bool | m_Active |
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 |
| CDoor::CDoor | ( | CGameWorld * | pGameWorld, |
| int | Id, | ||
| const CLaserData * | pData ) |
| CDoor::CDoor | ( | CGameWorld * | pGameWorld, |
| vec2 | Pos, | ||
| float | Rotation, | ||
| int | Length, | ||
| int | Number ) |
|
overridevirtual |
Reimplemented from CEntity.
|
private |
|
private |
| bool CDoor::Match | ( | const CDoor * | pDoor | ) | const |
| void CDoor::Read | ( | const CLaserData * | pData | ) |
|
overridevirtual |
Reimplemented from CEntity.
| void CDoor::ResetCollision | ( | ) |
|
private |
|
overridevirtual |
Reimplemented from CEntity.
|
private |
|
private |
|
private |
|
private |