#include <gameworld.h>
|
| enum | {
ENTTYPE_PROJECTILE = 0
, ENTTYPE_LASER
, ENTTYPE_DOOR
, ENTTYPE_DRAGGER
,
ENTTYPE_LIGHT
, ENTTYPE_GUN
, ENTTYPE_PLASMA
, ENTTYPE_PICKUP
,
ENTTYPE_FLAG
, ENTTYPE_CHARACTER
, NUM_ENTTYPES
} |
| |
| enum | {
ENTTYPE_PROJECTILE = 0
, ENTTYPE_LASER
, ENTTYPE_PICKUP
, ENTTYPE_FLAG
,
ENTTYPE_CHARACTER
, NUM_ENTTYPES
} |
| |
|
| | CGameWorld () |
| |
| | ~CGameWorld () |
| |
| CEntity * | FindFirst (int Type) |
| |
| CEntity * | FindLast (int Type) |
| |
| int | FindEntities (vec2 Pos, float Radius, CEntity **ppEnts, int Max, int Type) |
| |
| CCharacter * | IntersectCharacter (vec2 Pos0, vec2 Pos1, float Radius, vec2 &NewPos, const CCharacter *pNotThis=nullptr, int CollideWith=-1, const CCharacter *pThisOnly=nullptr) |
| |
| CEntity * | IntersectEntity (vec2 Pos0, vec2 Pos1, float Radius, int Type, vec2 &NewPos, const CEntity *pNotThis=nullptr, int CollideWith=-1, const CEntity *pThisOnly=nullptr) |
| |
| void | InsertEntity (CEntity *pEntity, bool Last=false) |
| |
| void | RemoveEntity (CEntity *pEntity) |
| |
| void | RemoveCharacter (CCharacter *pChar) |
| |
| void | Tick () |
| |
| void | ReleaseHooked (int ClientId) |
| |
| std::vector< CCharacter * > | IntersectedCharacters (vec2 Pos0, vec2 Pos1, float Radius, const CEntity *pNotThis=nullptr) |
| |
| int | GameTick () |
| |
| int | GameTickSpeed () |
| |
| CCollision * | Collision () |
| |
| CTeamsCore * | Teams () |
| |
| std::vector< SSwitchers > & | Switchers () |
| |
| CTuningParams * | Tuning () |
| |
| CEntity * | GetEntity (int Id, int EntityType) |
| |
| CCharacter * | GetCharacterById (int Id) |
| |
| void | CreateExplosion (vec2 Pos, int Owner, int Weapon, bool NoDamage, int ActivatedTeam, CClientMask Mask) |
| |
| bool | IsLocalTeam (int OwnerId) const |
| |
| void | OnModified () const |
| |
| void | NetObjBegin (CTeamsCore Teams, int LocalClientId) |
| |
| void | NetCharAdd (int ObjId, CNetObj_Character *pChar, CNetObj_DDNetCharacter *pExtended, int GameTeam, bool IsLocal) |
| |
| void | NetObjAdd (int ObjId, int ObjType, const void *pObjData, const CNetObj_EntityEx *pDataEx) |
| |
| void | NetObjEnd () |
| |
| void | CopyWorld (CGameWorld *pFrom) |
| |
| CEntity * | FindMatch (int ObjId, int ObjType, const void *pObjData) |
| |
| void | Clear () |
| |
| CTuningParams * | TuningList () |
| |
| CTuningParams * | GetTuning (int i) |
| |
| bool | EmulateBug (int Bug) const |
| |
| class CGameContext * | GameServer () |
| |
| class CConfig * | Config () |
| |
| class IServer * | Server () |
| |
| | CGameWorld () |
| |
| | ~CGameWorld () |
| |
| void | SetGameServer (CGameContext *pGameServer) |
| |
| CEntity * | FindFirst (int Type) |
| |
| int | FindEntities (vec2 Pos, float Radius, CEntity **ppEnts, int Max, int Type) |
| |
| CCharacter * | IntersectCharacter (vec2 Pos0, vec2 Pos1, float Radius, vec2 &NewPos, const CCharacter *pNotThis=nullptr, int CollideWith=-1, const CCharacter *pThisOnly=nullptr) |
| |
| CEntity * | IntersectEntity (vec2 Pos0, vec2 Pos1, float Radius, int Type, vec2 &NewPos, const CEntity *pNotThis=nullptr, int CollideWith=-1, const CEntity *pThisOnly=nullptr) |
| |
| CCharacter * | ClosestCharacter (vec2 Pos, float Radius, const CEntity *pNotThis) |
| |
| void | InsertEntity (CEntity *pEntity) |
| |
| void | RemoveEntity (CEntity *pEntity) |
| |
| void | RemoveEntitiesFromPlayer (int PlayerId) |
| |
| void | RemoveEntitiesFromPlayers (int PlayerIds[], int NumPlayers) |
| |
| void | Snap (int SnappingClient) |
| |
| void | Tick () |
| |
| void | SwapClients (int Client1, int Client2) |
| |
| ESaveResult | BlocksSave (int ClientId) |
| |
| void | ReleaseHooked (int ClientId) |
| |
| std::vector< CCharacter * > | IntersectedCharacters (vec2 Pos0, vec2 Pos1, float Radius, const CEntity *pNotThis=nullptr) |
| |
| CTuningParams * | Tuning () |
| |
| CTuningParams * | TuningList () |
| |
| CTuningParams * | GetTuning (int i) |
| |
◆ anonymous enum
| Enumerator |
|---|
| ENTTYPE_PROJECTILE | |
| ENTTYPE_LASER | |
| ENTTYPE_DOOR | |
| ENTTYPE_DRAGGER | |
| ENTTYPE_LIGHT | |
| ENTTYPE_GUN | |
| ENTTYPE_PLASMA | |
| ENTTYPE_PICKUP | |
| ENTTYPE_FLAG | |
| ENTTYPE_CHARACTER | |
| NUM_ENTTYPES | |
◆ anonymous enum
| Enumerator |
|---|
| ENTTYPE_PROJECTILE | |
| ENTTYPE_LASER | |
| ENTTYPE_PICKUP | |
| ENTTYPE_FLAG | |
| ENTTYPE_CHARACTER | |
| NUM_ENTTYPES | |
◆ CGameWorld() [1/2]
| CGameWorld::CGameWorld |
( |
| ) |
|
◆ ~CGameWorld() [1/2]
| CGameWorld::~CGameWorld |
( |
| ) |
|
◆ CGameWorld() [2/2]
| CGameWorld::CGameWorld |
( |
| ) |
|
◆ ~CGameWorld() [2/2]
| CGameWorld::~CGameWorld |
( |
| ) |
|
◆ BlocksSave()
◆ Clear()
| void CGameWorld::Clear |
( |
| ) |
|
◆ ClosestCharacter()
◆ Collision()
◆ Config()
◆ CopyWorld()
◆ CreateExplosion()
◆ EmulateBug()
| bool CGameWorld::EmulateBug |
( |
int |
Bug | ) |
const |
◆ FindEntities() [1/2]
◆ FindEntities() [2/2]
◆ FindFirst() [1/2]
◆ FindFirst() [2/2]
◆ FindLast()
◆ FindMatch()
◆ GameServer()
◆ GameTick()
| int CGameWorld::GameTick |
( |
| ) |
|
|
inline |
◆ GameTickSpeed()
| int CGameWorld::GameTickSpeed |
( |
| ) |
|
|
inline |
◆ GetCharacterById()
◆ GetEntity()
◆ GetTuning() [1/2]
◆ GetTuning() [2/2]
◆ InsertEntity() [1/2]
◆ InsertEntity() [2/2]
◆ IntersectCharacter() [1/2]
◆ IntersectCharacter() [2/2]
Finds the CCharacter that intersects the line.
- See also
- IntersectEntity
- Parameters
-
| Pos0 | Start position |
| Pos1 | End position |
| Radius | How far from the line the CCharacter is allowed to be |
| NewPos | Intersection position |
| pNotThis | Character to ignore intersecting with |
| CollideWith | Only find entitys that can collide with that Client Id (pass -1 to ignore this check) |
| pThisOnly | Only search this specific character and ignore all others |
- Returns
- Pointer to the closest hit or
nullptr if there is no intersection.
◆ IntersectedCharacters() [1/2]
◆ IntersectedCharacters() [2/2]
◆ IntersectEntity() [1/2]
◆ IntersectEntity() [2/2]
Finds the CEntity that intersects the line.
- See also
- IntersectCharacter
- Parameters
-
| Pos0 | Start position |
| Pos1 | End position |
| Radius | How far from the line the CEntity is allowed to be |
| Type | Type of the entity to intersect |
| NewPos | Intersection position |
| pNotThis | Entity to ignore intersecting with |
| CollideWith | Only find entitys that can collide with that Client Id (pass -1 to ignore this check) |
| pThisOnly | Only search this specific entity and ignore all others |
- Returns
- Pointer to the closest hit or
nullptr if there is no intersection.
◆ IsLocalTeam()
| bool CGameWorld::IsLocalTeam |
( |
int |
OwnerId | ) |
const |
◆ NetCharAdd()
◆ NetObjAdd()
◆ NetObjBegin()
◆ NetObjEnd()
| void CGameWorld::NetObjEnd |
( |
| ) |
|
◆ OnModified()
| void CGameWorld::OnModified |
( |
| ) |
const |
◆ ReleaseHooked() [1/2]
| void CGameWorld::ReleaseHooked |
( |
int |
ClientId | ) |
|
◆ ReleaseHooked() [2/2]
| void CGameWorld::ReleaseHooked |
( |
int |
ClientId | ) |
|
◆ RemoveCharacter()
◆ RemoveEntities() [1/2]
| void CGameWorld::RemoveEntities |
( |
| ) |
|
|
private |
◆ RemoveEntities() [2/2]
| void CGameWorld::RemoveEntities |
( |
| ) |
|
|
private |
◆ RemoveEntitiesFromPlayer()
| void CGameWorld::RemoveEntitiesFromPlayer |
( |
int |
PlayerId | ) |
|
◆ RemoveEntitiesFromPlayers()
| void CGameWorld::RemoveEntitiesFromPlayers |
( |
int |
PlayerIds[], |
|
|
int |
NumPlayers |
|
) |
| |
◆ RemoveEntity() [1/2]
◆ RemoveEntity() [2/2]
◆ Reset()
| void CGameWorld::Reset |
( |
| ) |
|
|
private |
◆ Server()
◆ SetGameServer()
◆ Snap()
| void CGameWorld::Snap |
( |
int |
SnappingClient | ) |
|
◆ SwapClients()
| void CGameWorld::SwapClients |
( |
int |
Client1, |
|
|
int |
Client2 |
|
) |
| |
◆ Switchers()
| std::vector< SSwitchers > & CGameWorld::Switchers |
( |
| ) |
|
|
inline |
◆ Teams()
◆ Tick() [1/2]
| void CGameWorld::Tick |
( |
| ) |
|
◆ Tick() [2/2]
| void CGameWorld::Tick |
( |
| ) |
|
◆ Tuning() [1/2]
◆ Tuning() [2/2]
◆ TuningList() [1/2]
◆ TuningList() [2/2]
◆ m_apCharacters
◆ m_apFirstEntityTypes
| CEntity * CGameWorld::m_apFirstEntityTypes |
|
private |
◆ m_BugDDRaceInput
| bool CGameWorld::m_BugDDRaceInput |
◆ m_Core
◆ m_GameTick
| int CGameWorld::m_GameTick |
◆ m_InfiniteAmmo
| bool CGameWorld::m_InfiniteAmmo |
◆ m_IsDDRace
| bool CGameWorld::m_IsDDRace |
◆ m_IsFNG
◆ m_IsSolo
| bool CGameWorld::m_IsSolo |
◆ m_IsValidCopy
| bool CGameWorld::m_IsValidCopy |
◆ m_IsVanilla
| bool CGameWorld::m_IsVanilla |
◆ m_LocalClientId
| int CGameWorld::m_LocalClientId |
◆ m_NoWeakHookAndBounce
| bool CGameWorld::m_NoWeakHookAndBounce |
◆ m_Paused
| bool CGameWorld::m_Paused |
◆ m_pChild
◆ m_pCollision
◆ m_pConfig
◆ m_pGameServer
◆ m_pMapBugs
◆ m_pNextTraverseEntity
◆ m_pParent
◆ m_PredictDDRace
| bool CGameWorld::m_PredictDDRace |
◆ m_PredictFreeze
| int CGameWorld::m_PredictFreeze |
◆ m_PredictTiles
| bool CGameWorld::m_PredictTiles |
◆ m_PredictWeapons
| bool CGameWorld::m_PredictWeapons |
◆ m_pServer
◆ m_pTuningList
◆ m_ResetRequested
| bool CGameWorld::m_ResetRequested |
◆ m_Teams
◆ m_UseTuneZones
| bool CGameWorld::m_UseTuneZones |
◆ [struct]
| struct { ... } CGameWorld::m_WorldConfig |
The documentation for this class was generated from the following files: