29 #ifndef __SESSIONLOCAL_H__
30 #define __SESSIONLOCAL_H__
105 virtual void StartMenu(
bool playIntro =
false );
110 virtual const char *
MessageBox(
msgBoxType_t type,
const char *message,
const char *title =
NULL,
bool wait =
false,
const char *fire_yes =
NULL,
const char *fire_no =
NULL,
bool network =
false );
119 virtual const char *
GetCDKey(
bool xp );
120 virtual bool CheckKey(
const char *key,
bool netConnect,
bool offline_valid[ 2 ] );
138 void StartNewGame(
const char *mapName,
bool devmap =
false );
146 void StartWipe(
const char *materialName,
bool hold =
false);
155 bool LoadGame(
const char *saveName);
156 bool SaveGame(
const char *saveName,
bool autosave =
false);
272 void WriteCmdDemo(
const char *name,
bool save =
false);
285 void AVIGame(
const char *name );
297 void TestGUI(
const char *name );
327 void TakeNotes(
const char *
p,
bool extended =
false );
void StartRecordingRenderDemo(const char *name)
const int MAX_ASYNC_CLIENTS
char xpkey[CDKEY_BUF_LEN]
void HandleRestartMenuCommands(const char *menuCommand)
void SetBytesNeededForMapLoad(const char *mapName, int bytesNeeded)
void StartPlayingRenderDemo(idStr name)
idStr GetAutoSaveName(const char *mapName) const
int bytesNeededForMapLoad
void AdvanceRenderDemo(bool singleFrameOnly)
void GetSaveGameList(idStrList &fileList, idList< fileTIME_T > &fileTimes)
renderView_t currentDemoRenderView
static idCVar com_aviDemoTics
virtual bool CDKeysAreValid(bool strict)
void AVICmdDemo(const char *name)
virtual const char * GetCurrentMapName()
const int USERCMD_PER_DEMO_FRAME
void ScrubSaveGameFileName(idStr &saveFileName) const
void TakeNotes(const char *p, bool extended=false)
void WriteCmdDemo(const char *name, bool save=false)
static idCVar com_showDemo
void TestGUI(const char *name)
virtual const char * MessageBox(msgBoxType_t type, const char *message, const char *title=NULL, bool wait=false, const char *fire_yes=NULL, const char *fire_no=NULL, bool network=false)
virtual void WriteCDKey(void)
void StartWipe(const char *materialName, bool hold=false)
static const int CDKEY_AUTH_TIMEOUT
void MenuEvent(const sysEvent_t *event)
void TimeCmdDemo(const char *demoName)
virtual void ClearCDKey(bool valid[2])
virtual ~idSessionLocal()
const idMaterial * wipeMaterial
virtual void PacifierUpdate()
GLuint GLuint GLsizei GLenum type
static idCVar com_showTics
void BeginAVICapture(const char *name)
void UpdateMPLevelShot(void)
HandleGuiCommand_t guiHandle
const idMaterial * whiteMaterial
const char * GetAuthMsg(void)
idSoundWorld * menuSoundWorld
void MoveToNewMap(const char *mapName)
static idCVar com_wipeSeconds
idUserInterface * guiTest
bool insideExecuteMapChange
void StartPlayingCmdDemo(const char *demoName)
void LoadCmdDemoFromFile(idFile *file)
bool MaybeWaitOnCDKey(void)
const int CONNECT_TRANSMIT_TIME
bool BoxDialogSanityCheck(void)
void CompressDemoFile(const char *scheme, const char *name)
idListGUI * guiMainMenu_MapList
void LoadSession(const char *name)
void SetMainMenuGuiVars(void)
virtual const char * GetCDKey(bool xp)
void DispatchCommand(idUserInterface *gui, const char *menuCommand, bool doIngame=true)
void SetSaveGameGuiVars(void)
virtual void ReadCDKey(void)
idUserInterface * guiActive
idUserInterface * guiTakeNotes
void StartNewGame(const char *mapName, bool devmap=false)
void HandleMsgCommands(const char *menuCommand)
void StopRecordingRenderDemo()
static const int CDKEY_BUF_LEN
void DemoShot(const char *name)
virtual bool ProcessEvent(const sysEvent_t *event)
void HandleChatMenuCommands(const char *menuCommand)
virtual void DownloadProgressBox(backgroundDownload_t *bgl, const char *title, int progress_start=0, int progress_end=100)
void HandleInGameCommands(const char *menuCommand)
static idCVar com_aviDemoSamples
void StopPlayingRenderDemo()
static idCVar com_showAngles
virtual void SetPlayingSoundWorld()
void SetMainMenuSkin(void)
void ExecuteMapChange(bool noFadeWipe=false)
void SaveCmdDemoToFile(idFile *file)
virtual void StartMenu(bool playIntro=false)
mapSpawnData_t mapSpawnData
idUserInterface * guiIntro
void TimeRenderDemo(const char *name, bool twice=false)
idUserInterface * GetActiveMenu()
static idCVar gui_configServerRate
void LoadLoadingGui(const char *mapName)
virtual void StopBox(void)
virtual void GuiFrameEvents()
idUserInterface * guiMainMenu
logStats_t loggedStats[MAX_LOGGED_STATS]
virtual void UpdateScreen(bool outOfSequence=true)
const char *(* HandleGuiCommand_t)(const char *)
virtual void SetGUI(idUserInterface *gui, HandleGuiCommand_t handle)
static idCVar com_aviDemoHeight
idUserInterface * guiGameOver
bool LoadGame(const char *saveName)
void AVIRenderDemo(const char *name)
void SaveSession(const char *name)
const int MAX_LOGGED_USERCMDS
void HandleIntroMenuCommands(const char *menuCommand)
static idCVar com_fixedTic
virtual void SetCDKeyGuiVars(void)
bool HandleSaveGameMenuCommand(idCmdArgs &args, int &icmd)
void AVIGame(const char *name)
char cdkey[CDKEY_BUF_LEN]
idUserInterface * guiInGame
idUserInterface * guiLoading
void SetModsMenuGuiVars(void)
virtual bool IsMultiplayer()
virtual bool CheckKey(const char *key, bool netConnect, bool offline_valid[2])
virtual bool WaitingForGameAuth(void)
virtual int GetSaveGameVersion(void)
int GetBytesNeededForMapLoad(const char *mapName)
logCmd_t loggedUsercmds[MAX_LOGGED_USERCMDS]
static idCVar com_skipGameDraw
static idCVar com_minTics
virtual void CDKeysAuthReply(bool valid, const char *auth_msg)
idUserInterface * guiMsgRestore
idUserInterface * guiRestartMenu
virtual void TimeHitch(int msec)
void HandleMainMenuCommands(const char *menuCommand)
bool SaveGame(const char *saveName, bool autosave=false)
void SetPbMenuGuiVars(void)
static idCVar com_aviDemoWidth
void HandleNoteCommands(const char *menuCommand)