![]() |
DDraceNetwork Documentation
|
#include <teehistorian.h>
Classes | |
| struct | CGameInfo |
| struct | CTeehistorianPlayer |
| struct | CTeam |
Public Types | |
| enum | { PROTOCOL_6 = 1 , PROTOCOL_7 } |
| typedef void(* | WRITE_CALLBACK) (const void *pData, int DataSize, void *pUser) |
Public Member Functions | |
| CTeeHistorian () | |
| void | Reset (const CGameInfo *pGameInfo, WRITE_CALLBACK pfnWriteCallback, void *pUser) |
| void | Finish () |
| bool | Starting () const |
| void | BeginTick (int Tick) |
| void | BeginPlayers () |
| void | RecordPlayer (int ClientId, const CNetObj_CharacterCore *pChar) |
| void | RecordDeadPlayer (int ClientId) |
| void | RecordPlayerTeam (int ClientId, int Team) |
| void | RecordTeamPractice (int Team, bool Practice) |
| void | EndPlayers () |
| void | BeginInputs () |
| void | RecordPlayerInput (int ClientId, uint32_t UniqueClientId, const CNetObj_PlayerInput *pInput) |
| void | RecordPlayerMessage (int ClientId, const void *pMsg, int MsgSize) |
| void | RecordPlayerJoin (int ClientId, int Protocol) |
| void | RecordPlayerRejoin (int ClientId) |
| void | RecordPlayerReady (int ClientId) |
| void | RecordPlayerDrop (int ClientId, const char *pReason) |
| void | RecordPlayerName (int ClientId, const char *pName) |
| void | RecordConsoleCommand (int ClientId, int FlagMask, const char *pCmd, IConsole::IResult *pResult) |
| void | RecordTestExtra () |
| void | RecordPlayerSwap (int ClientId1, int ClientId2) |
| void | RecordTeamSaveSuccess (int Team, CUuid SaveId, const char *pTeamSave) |
| void | RecordTeamSaveFailure (int Team) |
| void | RecordTeamLoadSuccess (int Team, CUuid SaveId, const char *pTeamSave) |
| void | RecordTeamLoadFailure (int Team) |
| void | EndInputs () |
| void | EndTick () |
| void | RecordDDNetVersionOld (int ClientId, int DDNetVersion) |
| void | RecordDDNetVersion (int ClientId, CUuid ConnectionId, int DDNetVersion, const char *pDDNetVersionStr) |
| void | RecordAuthInitial (int ClientId, int Level, const char *pAuthName) |
| void | RecordAuthLogin (int ClientId, int Level, const char *pAuthName) |
| void | RecordAuthLogout (int ClientId) |
| void | RecordAntibot (const void *pData, int DataSize) |
| void | RecordPlayerFinish (int ClientId, int TimeTicks) |
| void | RecordTeamFinish (int TeamId, int TimeTicks) |
Public Attributes | |
| int | m_Debug |
Private Types | |
| enum | { STATE_START , STATE_BEFORE_TICK , STATE_BEFORE_PLAYERS , STATE_PLAYERS , STATE_BEFORE_INPUTS , STATE_INPUTS , STATE_BEFORE_ENDTICK , NUM_STATES } |
Private Member Functions | |
| void | WriteHeader (const CGameInfo *pGameInfo) |
| void | WriteExtra (CUuid Uuid, const void *pData, int DataSize) |
| void | EnsureTickWrittenPlayerData (int ClientId) |
| void | EnsureTickWritten () |
| void | WriteTick () |
| void | Write (const void *pData, int DataSize) |
Private Attributes | |
| WRITE_CALLBACK | m_pfnWriteCallback |
| void * | m_pWriteCallbackUserdata |
| int | m_State |
| int | m_LastWrittenTick |
| bool | m_TickWritten |
| int | m_Tick |
| int | m_PrevMaxClientId |
| int | m_MaxClientId |
| CTeehistorianPlayer | m_aPrevPlayers [MAX_CLIENTS] |
| CTeam | m_aPrevTeams [MAX_CLIENTS] |
| typedef void(* CTeeHistorian::WRITE_CALLBACK) (const void *pData, int DataSize, void *pUser) |
|
private |
| CTeeHistorian::CTeeHistorian | ( | ) |
| void CTeeHistorian::BeginInputs | ( | ) |
| void CTeeHistorian::BeginPlayers | ( | ) |
| void CTeeHistorian::BeginTick | ( | int | Tick | ) |
| void CTeeHistorian::EndInputs | ( | ) |
| void CTeeHistorian::EndPlayers | ( | ) |
| void CTeeHistorian::EndTick | ( | ) |
|
private |
|
private |
| void CTeeHistorian::Finish | ( | ) |
| void CTeeHistorian::RecordAntibot | ( | const void * | pData, |
| int | DataSize ) |
| void CTeeHistorian::RecordAuthInitial | ( | int | ClientId, |
| int | Level, | ||
| const char * | pAuthName ) |
| void CTeeHistorian::RecordAuthLogin | ( | int | ClientId, |
| int | Level, | ||
| const char * | pAuthName ) |
| void CTeeHistorian::RecordAuthLogout | ( | int | ClientId | ) |
| void CTeeHistorian::RecordConsoleCommand | ( | int | ClientId, |
| int | FlagMask, | ||
| const char * | pCmd, | ||
| IConsole::IResult * | pResult ) |
| void CTeeHistorian::RecordDDNetVersion | ( | int | ClientId, |
| CUuid | ConnectionId, | ||
| int | DDNetVersion, | ||
| const char * | pDDNetVersionStr ) |
| void CTeeHistorian::RecordDDNetVersionOld | ( | int | ClientId, |
| int | DDNetVersion ) |
| void CTeeHistorian::RecordDeadPlayer | ( | int | ClientId | ) |
| void CTeeHistorian::RecordPlayer | ( | int | ClientId, |
| const CNetObj_CharacterCore * | pChar ) |
| void CTeeHistorian::RecordPlayerDrop | ( | int | ClientId, |
| const char * | pReason ) |
| void CTeeHistorian::RecordPlayerFinish | ( | int | ClientId, |
| int | TimeTicks ) |
| void CTeeHistorian::RecordPlayerInput | ( | int | ClientId, |
| uint32_t | UniqueClientId, | ||
| const CNetObj_PlayerInput * | pInput ) |
| void CTeeHistorian::RecordPlayerJoin | ( | int | ClientId, |
| int | Protocol ) |
| void CTeeHistorian::RecordPlayerMessage | ( | int | ClientId, |
| const void * | pMsg, | ||
| int | MsgSize ) |
| void CTeeHistorian::RecordPlayerName | ( | int | ClientId, |
| const char * | pName ) |
| void CTeeHistorian::RecordPlayerReady | ( | int | ClientId | ) |
| void CTeeHistorian::RecordPlayerRejoin | ( | int | ClientId | ) |
| void CTeeHistorian::RecordPlayerSwap | ( | int | ClientId1, |
| int | ClientId2 ) |
| void CTeeHistorian::RecordPlayerTeam | ( | int | ClientId, |
| int | Team ) |
| void CTeeHistorian::RecordTeamFinish | ( | int | TeamId, |
| int | TimeTicks ) |
| void CTeeHistorian::RecordTeamLoadFailure | ( | int | Team | ) |
| void CTeeHistorian::RecordTeamLoadSuccess | ( | int | Team, |
| CUuid | SaveId, | ||
| const char * | pTeamSave ) |
| void CTeeHistorian::RecordTeamPractice | ( | int | Team, |
| bool | Practice ) |
| void CTeeHistorian::RecordTeamSaveFailure | ( | int | Team | ) |
| void CTeeHistorian::RecordTeamSaveSuccess | ( | int | Team, |
| CUuid | SaveId, | ||
| const char * | pTeamSave ) |
| void CTeeHistorian::RecordTestExtra | ( | ) |
| void CTeeHistorian::Reset | ( | const CGameInfo * | pGameInfo, |
| WRITE_CALLBACK | pfnWriteCallback, | ||
| void * | pUser ) |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| int CTeeHistorian::m_Debug |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |