doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
idCommonLocal Class Reference
Inheritance diagram for idCommonLocal:
idCommon idCommon

Public Member Functions

 idCommonLocal (void)
 
virtual void Init (int argc, const char **argv, const char *cmdline)
 
virtual void Shutdown (void)
 
virtual void Quit (void)
 
virtual bool IsInitialized (void) const
 
virtual void Frame (void)
 
virtual void GUIFrame (bool execCmd, bool network)
 
virtual void Async (void)
 
virtual void StartupVariable (const char *match, bool once)
 
virtual void InitTool (const toolFlag_t tool, const idDict *dict)
 
virtual void ActivateTool (bool active)
 
virtual void WriteConfigToFile (const char *filename)
 
virtual void WriteFlaggedCVarsToFile (const char *filename, int flags, const char *setCmd)
 
virtual void BeginRedirect (char *buffer, int buffersize, void(*flush)(const char *))
 
virtual void EndRedirect (void)
 
virtual void SetRefreshOnPrint (bool set)
 
virtual void Printf (const char *fmt,...) id_attribute((format(printf
 
virtual void virtual void VPrintf (const char *fmt, va_list arg)
 
virtual void DPrintf (const char *fmt,...) id_attribute((format(printf
 
virtual void virtual void Warning (const char *fmt,...) id_attribute((format(printf
 
virtual void virtual void
virtual void 
DWarning (const char *fmt,...) id_attribute((format(printf
 
virtual void virtual void
virtual void virtual void 
PrintWarnings (void)
 
virtual void ClearWarnings (const char *reason)
 
virtual void Error (const char *fmt,...) id_attribute((format(printf
 
virtual void virtual void FatalError (const char *fmt,...) id_attribute((format(printf
 
virtual void virtual void
virtual const idLangDict
GetLanguageDict (void)
 
virtual const char * KeysFromBinding (const char *bind)
 
virtual const char * BindingFromKey (const char *key)
 
virtual int ButtonState (int key)
 
virtual int KeyState (int key)
 
void InitGame (void)
 
void ShutdownGame (bool reloading)
 
void InitLanguageDict (void)
 
void LocalizeGui (const char *fileName, idLangDict &langDict)
 
void LocalizeMapData (const char *fileName, idLangDict &langDict)
 
void LocalizeSpecificMapData (const char *fileName, idLangDict &langDict, const idLangDict &replaceArgs)
 
void SetMachineSpec (void)
 
 idCommonLocal (void)
 
virtual void Init (int argc, const char **argv, const char *cmdline)
 
virtual void Shutdown (void)
 
virtual void Quit (void)
 
virtual bool IsInitialized (void) const
 
virtual void Frame (void)
 
virtual void GUIFrame (bool execCmd, bool network)
 
virtual void Async (void)
 
virtual void StartupVariable (const char *match, bool once)
 
virtual void InitTool (const toolFlag_t tool, const idDict *dict)
 
virtual void ActivateTool (bool active)
 
virtual void WriteConfigToFile (const char *filename)
 
virtual void WriteFlaggedCVarsToFile (const char *filename, int flags, const char *setCmd)
 
virtual void BeginRedirect (char *buffer, int buffersize, void(*flush)(const char *))
 
virtual void EndRedirect (void)
 
virtual void SetRefreshOnPrint (bool set)
 
virtual void Printf (const char *fmt,...)
 
virtual void VPrintf (const char *fmt, va_list arg)
 
virtual void DPrintf (const char *fmt,...)
 
virtual void Warning (const char *fmt,...)
 
virtual void DWarning (const char *fmt,...)
 
virtual void PrintWarnings (void)
 
virtual void ClearWarnings (const char *reason)
 
virtual void Error (const char *fmt,...)
 
virtual void FatalError (const char *fmt,...)
 
virtual const idLangDictGetLanguageDict ()
 
virtual const char * KeysFromBinding (const char *bind)
 
virtual const char * BindingFromKey (const char *key)
 
virtual int ButtonState (int key)
 
virtual int KeyState (int key)
 
- Public Member Functions inherited from idCommon
virtual ~idCommon (void)
 

Private Member Functions

void InitCommands (void)
 
void InitRenderSystem (void)
 
void InitSIMD (void)
 
bool AddStartupCommands (void)
 
void ParseCommandLine (int argc, const char **argv)
 
void ClearCommandLine (void)
 
bool SafeMode (void)
 
void CheckToolMode (void)
 
void CloseLogFile (void)
 
void WriteConfiguration (void)
 
void DumpWarnings (void)
 
void SingleAsyncTic (void)
 
void LoadGameDLL (void)
 
void UnloadGameDLL (void)
 
void PrintLoadingMessage (const char *msg)
 
void FilterLangList (idStrList *list, idStr lang)
 

Private Attributes

bool com_fullyInitialized
 
bool com_refreshOnPrint
 
int com_errorEntered
 
bool com_shuttingDown
 
idFilelogFile
 
char errorMessage [MAX_PRINT_MSG_SIZE]
 
char * rd_buffer
 
int rd_buffersize
 
void(* rd_flush )(const char *buffer)
 
idStr warningCaption
 
idStrList warningList
 
idStrList errorList
 
int gameDLL
 
idLangDict languageDict
 

Detailed Description

Definition at line 114 of file Common.cpp.

Constructor & Destructor Documentation

idCommonLocal::idCommonLocal ( void  )

Definition at line 214 of file Common.cpp.

idCommonLocal::idCommonLocal ( void  )
inline

Definition at line 60 of file main.cpp.

Member Function Documentation

virtual void idCommonLocal::ActivateTool ( bool  active)
inlinevirtual

Implements idCommon.

Definition at line 71 of file main.cpp.

void idCommonLocal::ActivateTool ( bool  active)
virtual

Implements idCommon.

Definition at line 1007 of file Common.cpp.

bool idCommonLocal::AddStartupCommands ( void  )
private

Definition at line 959 of file Common.cpp.

virtual void idCommonLocal::Async ( void  )
inlinevirtual

Implements idCommon.

Definition at line 68 of file main.cpp.

void idCommonLocal::Async ( void  )
virtual

Implements idCommon.

Definition at line 2584 of file Common.cpp.

virtual void idCommonLocal::BeginRedirect ( char *  buffer,
int  buffersize,
void(*)(const char *)  flush 
)
inlinevirtual

Implements idCommon.

Definition at line 74 of file main.cpp.

void idCommonLocal::BeginRedirect ( char *  buffer,
int  buffersize,
void(*)(const char *)  flush 
)
virtual

Implements idCommon.

Definition at line 240 of file Common.cpp.

virtual const char* idCommonLocal::BindingFromKey ( const char *  key)
inlinevirtual

Implements idCommon.

Definition at line 88 of file main.cpp.

const char * idCommonLocal::BindingFromKey ( const char *  key)
virtual

Implements idCommon.

Definition at line 1113 of file Common.cpp.

virtual int idCommonLocal::ButtonState ( int  key)
inlinevirtual

Implements idCommon.

Definition at line 89 of file main.cpp.

int idCommonLocal::ButtonState ( int  key)
virtual

Implements idCommon.

Definition at line 1123 of file Common.cpp.

void idCommonLocal::CheckToolMode ( void  )
private

Definition at line 876 of file Common.cpp.

void idCommonLocal::ClearCommandLine ( void  )
private

Definition at line 843 of file Common.cpp.

virtual void idCommonLocal::ClearWarnings ( const char *  reason)
inlinevirtual

Implements idCommon.

Definition at line 83 of file main.cpp.

void idCommonLocal::ClearWarnings ( const char *  reason)
virtual

Implements idCommon.

Definition at line 576 of file Common.cpp.

void idCommonLocal::CloseLogFile ( void  )
private

Definition at line 302 of file Common.cpp.

virtual void idCommonLocal::DPrintf ( const char *  fmt,
  ... 
)
inlinevirtual

Reimplemented from idCommon.

Definition at line 79 of file main.cpp.

void idCommonLocal::DPrintf ( const char *  fmt,
  ... 
)
virtual

Reimplemented from idCommon.

Definition at line 474 of file Common.cpp.

void idCommonLocal::DumpWarnings ( void  )
private

Definition at line 586 of file Common.cpp.

virtual void idCommonLocal::DWarning ( const char *  fmt,
  ... 
)
inlinevirtual

Reimplemented from idCommon.

Definition at line 81 of file main.cpp.

void idCommonLocal::DWarning ( const char *  fmt,
  ... 
)
virtual

Reimplemented from idCommon.

Definition at line 503 of file Common.cpp.

virtual void idCommonLocal::EndRedirect ( void  )
inlinevirtual

Implements idCommon.

Definition at line 75 of file main.cpp.

void idCommonLocal::EndRedirect ( void  )
virtual

Implements idCommon.

Definition at line 256 of file Common.cpp.

virtual void idCommonLocal::Error ( const char *  fmt,
  ... 
)
inlinevirtual

Reimplemented from idCommon.

Definition at line 84 of file main.cpp.

void idCommonLocal::Error ( const char *  fmt,
  ... 
)
virtual

Reimplemented from idCommon.

Definition at line 634 of file Common.cpp.

virtual void idCommonLocal::FatalError ( const char *  fmt,
  ... 
)
inlinevirtual

Reimplemented from idCommon.

Definition at line 85 of file main.cpp.

void idCommonLocal::FatalError ( const char *  fmt,
  ... 
)
virtual

Reimplemented from idCommon.

Definition at line 729 of file Common.cpp.

void idCommonLocal::FilterLangList ( idStrList list,
idStr  lang 
)
private

Definition at line 1598 of file Common.cpp.

virtual void idCommonLocal::Frame ( void  )
inlinevirtual

Implements idCommon.

Definition at line 66 of file main.cpp.

void idCommonLocal::Frame ( void  )
virtual

Implements idCommon.

Definition at line 2439 of file Common.cpp.

virtual const idLangDict* idCommonLocal::GetLanguageDict ( void  )
inlinevirtual

Implements idCommon.

Definition at line 86 of file main.cpp.

const idLangDict * idCommonLocal::GetLanguageDict ( void  )
virtual

Implements idCommon.

Definition at line 1589 of file Common.cpp.

virtual void idCommonLocal::GUIFrame ( bool  execCmd,
bool  network 
)
inlinevirtual

Implements idCommon.

Definition at line 67 of file main.cpp.

void idCommonLocal::GUIFrame ( bool  execCmd,
bool  network 
)
virtual

Implements idCommon.

Definition at line 2504 of file Common.cpp.

virtual void idCommonLocal::Init ( int  argc,
const char **  argv,
const char *  cmdline 
)
inlinevirtual

Implements idCommon.

Definition at line 62 of file main.cpp.

void idCommonLocal::Init ( int  argc,
const char **  argv,
const char *  cmdline 
)
virtual

Implements idCommon.

Definition at line 2764 of file Common.cpp.

void idCommonLocal::InitCommands ( void  )
private

Definition at line 2326 of file Common.cpp.

void idCommonLocal::InitGame ( void  )

Definition at line 2923 of file Common.cpp.

void idCommonLocal::InitLanguageDict ( void  )

Definition at line 1617 of file Common.cpp.

void idCommonLocal::InitRenderSystem ( void  )
private

Definition at line 2399 of file Common.cpp.

void idCommonLocal::InitSIMD ( void  )
private

Definition at line 2429 of file Common.cpp.

virtual void idCommonLocal::InitTool ( const toolFlag_t  tool,
const idDict dict 
)
inlinevirtual

Implements idCommon.

Definition at line 70 of file main.cpp.

void idCommonLocal::InitTool ( const toolFlag_t  tool,
const idDict dict 
)
virtual

Implements idCommon.

Definition at line 986 of file Common.cpp.

virtual bool idCommonLocal::IsInitialized ( void  ) const
inlinevirtual

Implements idCommon.

Definition at line 65 of file main.cpp.

bool idCommonLocal::IsInitialized ( void  ) const
virtual

Implements idCommon.

Definition at line 2722 of file Common.cpp.

virtual const char* idCommonLocal::KeysFromBinding ( const char *  bind)
inlinevirtual

Implements idCommon.

Definition at line 87 of file main.cpp.

const char * idCommonLocal::KeysFromBinding ( const char *  bind)
virtual

Implements idCommon.

Definition at line 1103 of file Common.cpp.

virtual int idCommonLocal::KeyState ( int  key)
inlinevirtual

Implements idCommon.

Definition at line 90 of file main.cpp.

int idCommonLocal::KeyState ( int  key)
virtual

Implements idCommon.

Definition at line 1133 of file Common.cpp.

void idCommonLocal::LoadGameDLL ( void  )
private

Definition at line 2629 of file Common.cpp.

void idCommonLocal::LocalizeGui ( const char *  fileName,
idLangDict langDict 
)

Definition at line 1733 of file Common.cpp.

void idCommonLocal::LocalizeMapData ( const char *  fileName,
idLangDict langDict 
)

Definition at line 1690 of file Common.cpp.

void idCommonLocal::LocalizeSpecificMapData ( const char *  fileName,
idLangDict langDict,
const idLangDict replaceArgs 
)

Definition at line 1660 of file Common.cpp.

void idCommonLocal::ParseCommandLine ( int  argc,
const char **  argv 
)
private

Definition at line 819 of file Common.cpp.

virtual void idCommonLocal::Printf ( const char *  fmt,
  ... 
)
inlinevirtual

Reimplemented from idCommon.

Definition at line 77 of file main.cpp.

void idCommonLocal::Printf ( const char *  fmt,
  ... 
)
virtual

Reimplemented from idCommon.

Definition at line 460 of file Common.cpp.

void idCommonLocal::PrintLoadingMessage ( const char *  msg)
private

Definition at line 2413 of file Common.cpp.

virtual void idCommonLocal::PrintWarnings ( void  )
inlinevirtual

Implements idCommon.

Definition at line 82 of file main.cpp.

void idCommonLocal::PrintWarnings ( void  )
virtual

Implements idCommon.

Definition at line 547 of file Common.cpp.

virtual void idCommonLocal::Quit ( void  )
inlinevirtual

Implements idCommon.

Definition at line 64 of file main.cpp.

void idCommonLocal::Quit ( void  )
virtual

Implements idCommon.

Definition at line 775 of file Common.cpp.

bool idCommonLocal::SafeMode ( void  )
private

Definition at line 855 of file Common.cpp.

void idCommonLocal::SetMachineSpec ( void  )

Definition at line 2731 of file Common.cpp.

virtual void idCommonLocal::SetRefreshOnPrint ( bool  set)
inlinevirtual

Implements idCommon.

Definition at line 76 of file main.cpp.

void idCommonLocal::SetRefreshOnPrint ( bool  set)
virtual

Implements idCommon.

Definition at line 315 of file Common.cpp.

virtual void idCommonLocal::Shutdown ( void  )
inlinevirtual

Implements idCommon.

Definition at line 63 of file main.cpp.

void idCommonLocal::Shutdown ( void  )
virtual

Implements idCommon.

Definition at line 2873 of file Common.cpp.

void idCommonLocal::ShutdownGame ( bool  reloading)

Definition at line 3051 of file Common.cpp.

void idCommonLocal::SingleAsyncTic ( void  )
private

Definition at line 2547 of file Common.cpp.

virtual void idCommonLocal::StartupVariable ( const char *  match,
bool  once 
)
inlinevirtual

Implements idCommon.

Definition at line 69 of file main.cpp.

void idCommonLocal::StartupVariable ( const char *  match,
bool  once 
)
virtual

Implements idCommon.

Definition at line 918 of file Common.cpp.

void idCommonLocal::UnloadGameDLL ( void  )
private

Definition at line 2698 of file Common.cpp.

virtual void idCommonLocal::VPrintf ( const char *  fmt,
va_list  arg 
)
inlinevirtual

Implements idCommon.

Definition at line 78 of file main.cpp.

void idCommonLocal::VPrintf ( const char *  fmt,
va_list  arg 
)
virtual

Implements idCommon.

Definition at line 326 of file Common.cpp.

virtual void idCommonLocal::Warning ( const char *  fmt,
  ... 
)
inlinevirtual

Reimplemented from idCommon.

Definition at line 80 of file main.cpp.

void idCommonLocal::Warning ( const char *  fmt,
  ... 
)
virtual

Reimplemented from idCommon.

Definition at line 526 of file Common.cpp.

virtual void idCommonLocal::WriteConfigToFile ( const char *  filename)
inlinevirtual

Implements idCommon.

Definition at line 72 of file main.cpp.

void idCommonLocal::WriteConfigToFile ( const char *  filename)
virtual

Implements idCommon.

Definition at line 1034 of file Common.cpp.

void idCommonLocal::WriteConfiguration ( void  )
private

Definition at line 1074 of file Common.cpp.

virtual void idCommonLocal::WriteFlaggedCVarsToFile ( const char *  filename,
int  flags,
const char *  setCmd 
)
inlinevirtual

Implements idCommon.

Definition at line 73 of file main.cpp.

void idCommonLocal::WriteFlaggedCVarsToFile ( const char *  filename,
int  flags,
const char *  setCmd 
)
virtual

Implements idCommon.

Definition at line 1017 of file Common.cpp.

Member Data Documentation

int idCommonLocal::com_errorEntered
private

Definition at line 181 of file Common.cpp.

bool idCommonLocal::com_fullyInitialized
private

Definition at line 179 of file Common.cpp.

bool idCommonLocal::com_refreshOnPrint
private

Definition at line 180 of file Common.cpp.

bool idCommonLocal::com_shuttingDown
private

Definition at line 182 of file Common.cpp.

idStrList idCommonLocal::errorList
private

Definition at line 194 of file Common.cpp.

char idCommonLocal::errorMessage[MAX_PRINT_MSG_SIZE]
private

Definition at line 186 of file Common.cpp.

int idCommonLocal::gameDLL
private

Definition at line 196 of file Common.cpp.

idLangDict idCommonLocal::languageDict
private

Definition at line 198 of file Common.cpp.

idFile* idCommonLocal::logFile
private

Definition at line 184 of file Common.cpp.

char* idCommonLocal::rd_buffer
private

Definition at line 188 of file Common.cpp.

int idCommonLocal::rd_buffersize
private

Definition at line 189 of file Common.cpp.

void(* idCommonLocal::rd_flush)(const char *buffer)
private

Definition at line 190 of file Common.cpp.

idStr idCommonLocal::warningCaption
private

Definition at line 192 of file Common.cpp.

idStrList idCommonLocal::warningList
private

Definition at line 193 of file Common.cpp.


The documentation for this class was generated from the following files: