![]() |
DDNet documentation
|
#include <laser.h>
Public Member Functions | |
| CLaser (CGameWorld *pGameWorld, vec2 Pos, vec2 DirectionDirection, float StartEnergy, int Owner, int Type) | |
| void | Tick () override |
| const vec2 & | GetFrom () const |
| const int & | GetOwner () const |
| const int & | GetEvalTick () const |
| CLaser (CGameWorld *pGameWorld, int Id, const CLaserData *pLaser) | |
| bool | Match (CLaser *pLaser) |
| CLaserData | GetData () const |
| CLaser (CGameWorld *pGameWorld, vec2 Pos, vec2 DirectionDirection, float StartEnergy, int Owner, int Type) | |
| void | Reset () override |
| void | Tick () override |
| void | TickPaused () override |
| void | Snap (int SnappingClient) override |
| void | SwapClients (int Client1, int Client2) override |
| int | GetOwnerId () const 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 ESaveResult | BlocksSave (int ClientId) |
| 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) |
Protected Member Functions | |
| bool | HitCharacter (vec2 From, vec2 To) |
| void | DoBounce () |
| bool | HitCharacter (vec2 From, vec2 To) |
| void | DoBounce () |
Private Member Functions | |
| void | SyncInteractState () |
Private Attributes | |
| vec2 | m_From |
| vec2 | m_Dir |
| float | m_Energy |
| int | m_Bounces |
| int | m_EvalTick |
| int | m_Owner |
| bool | m_ZeroEnergyBounceInLastTick |
| vec2 | m_PrevPos |
| int | m_Type |
| int | m_TuneZone |
| vec2 | m_TelePos |
| bool | m_WasTele |
| CInteractions | m_InteractState |
| bool | m_TeleportCancelled |
| bool | m_IsBlueTeleport |
| bool | m_BelongsToPracticeTeam |
Friends | |
| class | CGameWorld |
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 |
| CLaser::CLaser | ( | CGameWorld * | pGameWorld, |
| vec2 | Pos, | ||
| vec2 | Direction, | ||
| float | StartEnergy, | ||
| int | Owner, | ||
| int | Type ) |
| CLaser::CLaser | ( | CGameWorld * | pGameWorld, |
| int | Id, | ||
| const CLaserData * | pLaser ) |
| CLaser::CLaser | ( | CGameWorld * | pGameWorld, |
| vec2 | Pos, | ||
| vec2 | Direction, | ||
| float | StartEnergy, | ||
| int | Owner, | ||
| int | Type ) |
|
protected |
|
protected |
| CLaserData CLaser::GetData | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Reimplemented from CEntity.
| bool CLaser::Match | ( | CLaser * | pLaser | ) |
|
overridevirtual |
Reimplemented from CEntity.
|
overridevirtual |
Reimplemented from CEntity.
|
overridevirtual |
Reimplemented from CEntity.
|
private |
|
overridevirtual |
Reimplemented from CEntity.
|
overridevirtual |
Reimplemented from CEntity.
|
overridevirtual |
Reimplemented from CEntity.
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |