![]() |
DDNet documentation
|
#include <light.h>
Public Member Functions | |
| CLight (CGameWorld *pGameWorld, vec2 Pos, float Rotation, int Length, int Layer=0, int Number=0) | |
| void | Reset () override |
| void | Tick () 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 | 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 | 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) |
Public Attributes | |
| int | m_CurveLength |
| int | m_LengthL |
| float | m_AngularSpeed |
| int | m_Speed |
| int | m_Length |
| 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 |
Private Member Functions | |
| bool | HitCharacter () |
| void | Move () |
| void | Step () |
Private Attributes | |
| float | m_Rotation |
| vec2 | m_To |
| vec2 | m_Core |
| int | m_EvalTick |
| int | m_Tick |
Additional Inherited Members | |
| Protected Attributes inherited from CEntity | |
| CGameWorld * | m_pGameWorld |
| bool | m_MarkedForDestroy |
| int | m_Id |
| int | m_ObjType |
| CLight::CLight | ( | CGameWorld * | pGameWorld, |
| vec2 | Pos, | ||
| float | Rotation, | ||
| int | Length, | ||
| int | Layer = 0, | ||
| int | Number = 0 ) |
|
private |
|
private |
|
overridevirtual |
Reimplemented from CEntity.
|
overridevirtual |
Reimplemented from CEntity.
|
private |
|
overridevirtual |
Reimplemented from CEntity.
| float CLight::m_AngularSpeed |
|
private |
| int CLight::m_CurveLength |
|
private |
| int CLight::m_Length |
| int CLight::m_LengthL |
|
private |
| int CLight::m_Speed |
|
private |
|
private |