![]() |
DDraceNetwork Documentation
|
#include <ddnet.h>
Public Member Functions | |
| CGameControllerDDNet (class CGameContext *pGameServer) | |
| ~CGameControllerDDNet () override | |
| CScore * | Score () |
| void | HandleCharacterTiles (class CCharacter *pChr, int MapIndex) override |
| void | SetArmorProgress (CCharacter *pCharacter, int Progress) override |
| int | SnapPlayerScore (int SnappingClient, CPlayer *pPlayer) override |
| CFinishTime | SnapPlayerTime (int SnappingClient, CPlayer *pPlayer) override |
| CFinishTime | SnapMapBestTime (int SnappingClient) override |
| void | OnPlayerConnect (class CPlayer *pPlayer) override |
| void | OnPlayerDisconnect (class CPlayer *pPlayer, const char *pReason) override |
| void | OnReset () override |
| void | Tick () override |
| void | DoTeamChange (class CPlayer *pPlayer, int Team, bool DoChatMsg=true) override |
| Public Member Functions inherited from IGameController | |
| IGameController (class CGameContext *pGameServer) | |
| virtual | ~IGameController () |
| virtual int | OnCharacterDeath (class CCharacter *pVictim, class CPlayer *pKiller, int Weapon) |
| virtual void | OnCharacterSpawn (class CCharacter *pChr) |
| virtual bool | OnEntity (int Index, int x, int y, int Layer, int Flags, bool Initial, int Number=0) |
| virtual void | DoWarmup (int Seconds) |
| void | SetGamePaused (bool Paused) |
| bool | IsGamePaused () const |
| void | StartRound () |
| void | EndRound () |
| void | ChangeMap (const char *pToMap) |
| virtual void | Snap (int SnappingClient) |
| virtual bool | CanSpawn (int Team, vec2 *pOutPos, int ClientId) |
| int | TileFlagsToPickupFlags (int TileFlags) const |
| virtual bool | IsValidTeam (int Team) |
| virtual const char * | GetTeamName (int Team) |
| virtual int | GetAutoTeam (int NotThisId) |
| virtual bool | CanJoinTeam (int Team, int NotThisId, char *pErrorReason, int ErrorReasonSize) |
| CClientMask | GetMaskForPlayerWorldEvent (int Asker, int ExceptID=-1) |
| bool | IsTeamPlay () const |
| CGameTeams & | Teams () |
Additional Inherited Members | |
| Public Attributes inherited from IGameController | |
| const char * | m_pGameType |
| std::optional< float > | m_CurrentRecord |
| std::shared_ptr< CScoreLoadBestTimeResult > | m_pLoadBestTimeResult |
| Protected Types inherited from IGameController | |
| enum | ESpawnType { SPAWNTYPE_DEFAULT = 0 , SPAWNTYPE_RED , SPAWNTYPE_BLUE , NUM_SPAWNTYPES } |
| Protected Member Functions inherited from IGameController | |
| CGameContext * | GameServer () const |
| CConfig * | Config () |
| IServer * | Server () const |
| void | DoActivityCheck () |
| float | EvaluateSpawnPos (CSpawnEval *pEval, vec2 Pos, int ClientId) |
| void | EvaluateSpawnType (CSpawnEval *pEval, ESpawnType SpawnType, int ClientId) |
| void | ResetGame () |
| Protected Attributes inherited from IGameController | |
| char | m_aMapWish [MAX_MAP_LENGTH] |
| int | m_RoundStartTick |
| int | m_GameOverTick |
| int | m_SuddenDeath |
| int | m_Warmup |
| int | m_RoundCount |
| int | m_GameFlags |
| CGameControllerDDNet::CGameControllerDDNet | ( | class CGameContext * | pGameServer | ) |
|
overridedefault |
|
overridevirtual |
Reimplemented from IGameController.
|
overridevirtual |
Reimplemented from IGameController.
|
overridevirtual |
Reimplemented from IGameController.
|
overridevirtual |
Reimplemented from IGameController.
|
overridevirtual |
Reimplemented from IGameController.
| CScore * CGameControllerDDNet::Score | ( | ) |
|
overridevirtual |
Reimplemented from IGameController.
|
overridevirtual |
Snaps the current server record / best time of the current map.
| SnappingClient | Client ID of the player that will receive the snapshot. |
Reimplemented from IGameController.
|
overridevirtual |
Sets the score value that will be shown in the scoreboard.
| SnappingClient | Client ID of the player that will receive the snapshot. |
| pPlayer | Player that is being snapped. |
Reimplemented from IGameController.
|
overridevirtual |
Returns the finish time value that will be shown in the scoreboard.
| SnappingClient | Client ID of the player that will receive the snapshot. |
| pPlayer | Player that is being snapped. |
Reimplemented from IGameController.
|
overridevirtual |
Reimplemented from IGameController.