![]() |
DDNet documentation
|
#include <projectile.h>
Public Member Functions | |
| CProjectile (CGameWorld *pGameWorld, int Type, int Owner, vec2 Pos, vec2 Dir, int Span, bool Freeze, bool Explosive, int SoundImpact, int Layer=0, int Number=0) | |
| vec2 | GetPos (float Time) |
| CProjectileData | GetData () const |
| void | Tick () override |
| bool | Match (CProjectile *pProj) |
| void | SetBouncing (int Value) |
| const vec2 & | GetDirection () const |
| const int & | GetOwner () const |
| const int & | GetStartTick () const |
| CProjectile (CGameWorld *pGameWorld, int Id, const CProjectileData *pProj) | |
| CProjectile (CGameWorld *pGameWorld, int Type, int Owner, vec2 Pos, vec2 Dir, int Span, bool Freeze, bool Explosive, int SoundImpact, vec2 InitDir, int Layer=0, int Number=0) | |
| vec2 | GetPos (float Time) |
| CNetObj_Projectile | NetInfoVanilla () const |
| bool | NetIsInfoLegacyCompatible () const |
| CNetObj_DDRaceProjectile | NetInfoLegacy (int SnappingClient) |
| CNetObj_DDNetProjectile | NetInfo (int SnappingClient) |
| void | Reset () override |
| void | Tick () override |
| void | TickPaused () override |
| void | Snap (int SnappingClient) override |
| void | SwapClients (int Client1, int Client2) override |
| void | SetBouncing (int Value) |
| bool | CanCollide (int ClientId) 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 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) |
| bool | GetNearestAirPos (vec2 Pos, vec2 PrevPos, vec2 *pOutPos) |
| bool | GetNearestAirPosPlayer (vec2 PlayerPos, vec2 *pOutPos) |
Private Attributes | |
| vec2 | m_Direction |
| int | m_LifeSpan |
| int | m_Owner |
| int | m_Type |
| int | m_SoundImpact |
| float | m_Force |
| int | m_StartTick |
| bool | m_Explosive |
| int | m_Bouncing |
| bool | m_Freeze |
| int | m_TuneZone |
| CClientMask | m_TeamMask |
| bool | m_BelongsToPracticeTeam |
| int | m_DDRaceTeam |
| bool | m_IsSolo |
| vec2 | m_InitDir |
Friends | |
| class | CGameWorld |
| class | CItems |
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 |
| CProjectile::CProjectile | ( | CGameWorld * | pGameWorld, |
| int | Type, | ||
| int | Owner, | ||
| vec2 | Pos, | ||
| vec2 | Dir, | ||
| int | Span, | ||
| bool | Freeze, | ||
| bool | Explosive, | ||
| int | SoundImpact, | ||
| int | Layer = 0, | ||
| int | Number = 0 ) |
| CProjectile::CProjectile | ( | CGameWorld * | pGameWorld, |
| int | Id, | ||
| const CProjectileData * | pProj ) |
| CProjectile::CProjectile | ( | CGameWorld * | pGameWorld, |
| int | Type, | ||
| int | Owner, | ||
| vec2 | Pos, | ||
| vec2 | Dir, | ||
| int | Span, | ||
| bool | Freeze, | ||
| bool | Explosive, | ||
| int | SoundImpact, | ||
| vec2 | InitDir, | ||
| int | Layer = 0, | ||
| int | Number = 0 ) |
|
overridevirtual |
Reimplemented from CEntity.
| CProjectileData CProjectile::GetData | ( | ) | const |
|
inline |
|
inline |
|
inlineoverridevirtual |
Reimplemented from CEntity.
| vec2 CProjectile::GetPos | ( | float | Time | ) |
| vec2 CProjectile::GetPos | ( | float | Time | ) |
|
inline |
| bool CProjectile::Match | ( | CProjectile * | pProj | ) |
| CNetObj_DDNetProjectile CProjectile::NetInfo | ( | int | SnappingClient | ) |
| CNetObj_DDRaceProjectile CProjectile::NetInfoLegacy | ( | int | SnappingClient | ) |
| CNetObj_Projectile CProjectile::NetInfoVanilla | ( | ) | const |
| bool CProjectile::NetIsInfoLegacyCompatible | ( | ) | const |
|
overridevirtual |
Reimplemented from CEntity.
| void CProjectile::SetBouncing | ( | int | Value | ) |
| void CProjectile::SetBouncing | ( | int | Value | ) |
|
overridevirtual |
Reimplemented from CEntity.
|
overridevirtual |
Reimplemented from CEntity.
|
overridevirtual |
Reimplemented from CEntity.
|
overridevirtual |
Reimplemented from CEntity.
|
overridevirtual |
Reimplemented from CEntity.
|
friend |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |