#include <C4Application.h>
Public Member Functions | |
C4Application () | |
~C4Application () override | |
void | Clear () override |
void | ClearCommandLine () |
void | GameTick () |
void | Draw () |
bool | OpenSystemGroup () |
void | CloseSystemGroup () |
void | SetGameTickDelay (int iDelay) |
void | OnResolutionChanged (unsigned int iXRes, unsigned int iYRes) override |
void | OnKeyboardLayoutChanged () override |
bool | SetGameFont (const char *szFontFace, int32_t iFontSize) |
void | NextTick () |
void | Quit () override |
void | OpenGame (const char *scenario=nullptr) |
void | QuitGame () |
void | Activate () |
void | SetNextMission (const char *szMissionFilename) |
void | OnCommand (const char *szCmd) override |
bool | IsQuittingGame () const |
const char * | GetRevision () const |
bool | FullScreenMode () |
int | GetConfigWidth () |
int | GetConfigHeight () |
bool | Init (int argc, char *argv[]) |
void | Run () |
bool | GetIndexedDisplayMode (int32_t iIndex, int32_t *piXRes, int32_t *piYRes, int32_t *piBitDepth, int32_t *piRefreshRate, uint32_t iMonitor) |
bool | SetVideoMode (int iXRes, int iYRes, unsigned int iRefreshRate, unsigned int iMonitor, bool fFullScreen) |
void | RestoreVideoMode () |
bool | DoScheduleProcs (int iTimeout) override |
bool | FlushMessages () |
bool | Copy (const std::string &text, bool fClipboard=true) |
std::string | Paste (bool fClipboard=true) |
bool | IsClipboardFull (bool fClipboard=true) |
void | NotifyUserIfInactive () |
void | MessageDialog (const char *message) |
const char * | GetLastError () |
void | Error (const char *m) |
bool | AssertMainThread () |
int | getProcCnt () const |
bool | hasProc (StdSchedulerProc *pProc) |
bool | IsInManualLoop () |
void | Set (StdSchedulerProc **ppProcs, int iProcCnt) |
void | Add (StdSchedulerProc *pProc) |
void | Remove (StdSchedulerProc *pProc) |
void | Added (StdSchedulerProc *pProc) |
void | Removing (StdSchedulerProc *pProc) |
void | Changed (StdSchedulerProc *pProc) |
void | StartOnCurrentThread () |
C4TimeMilliseconds | GetNextTick (C4TimeMilliseconds tNow) |
bool | ScheduleProcs (int iTimeout=1000/36) |
void | UnBlock () |
Public Attributes | |
bool | restartAtEnd {false} |
C4Group | SystemGroup |
C4MusicSystem | MusicSystem |
C4SoundSystem | SoundSystem |
C4GamePadControl * | pGamePadControl {nullptr} |
C4InteractiveThread | InteractiveThread |
C4Network2IRCClient & | IRCClient |
const char * | argv0 |
int | isEditor {false} |
std::string | IncomingUpdate |
int | CheckForUpdates {false} |
bool | Active {false} |
C4Window * | pWindow {nullptr} |
bool | fQuitMsgReceived {false} |
pthread_t | MainThread |
Protected Types | |
enum | State { C4AS_None , C4AS_PreInit , C4AS_Startup , C4AS_StartGame , C4AS_Game , C4AS_AfterGame , C4AS_Quit } |
Protected Member Functions | |
bool | DoInit (int argc, char *argv[]) override |
void | ParseCommandLine (int argc, char *argv[]) |
bool | PreInit () |
void | ApplyResolutionConstraints () |
virtual void | OnError (StdSchedulerProc *) |
Static Protected Member Functions | |
static bool | ProcessCallback (const char *szMessage, int iProcess) |
Protected Attributes | |
enum C4Application::State | C4AS_None |
C4ApplicationGameTimer * | pGameTimer {nullptr} |
int | QuitAfterGame {false} |
std::string | IncomingKeyfile |
std::string | sLastError |
bool | fDspModeSet {false} |
Definition at line 32 of file C4Application.h.
|
protected |
Enumerator | |
---|---|
C4AS_None | |
C4AS_PreInit | |
C4AS_Startup | |
C4AS_StartGame | |
C4AS_Game | |
C4AS_AfterGame | |
C4AS_Quit |
Definition at line 87 of file C4Application.h.
C4Application::C4Application | ( | ) |
Definition at line 49 of file C4Application.cpp.
|
override |
Definition at line 54 of file C4Application.cpp.
References CloseLog(), and pGamePadControl.
void C4Application::Activate | ( | ) |
Definition at line 846 of file C4Application.cpp.
References FullScreen.
Referenced by C4StartupMainDlg::OnShown().
|
inherited |
Definition at line 84 of file StdScheduler.cpp.
References StdScheduler::Added().
Referenced by C4GameLobby::ScenDesc::Activate(), C4GameOptionsList::Activate(), C4Network2ResDlg::Activate(), StdSchedulerThread::Add(), C4GameOverDlg::C4GameOverDlg(), C4GameSec1Timer::C4GameSec1Timer(), C4InteractiveThread::C4InteractiveThread(), C4Network2ClientListBox::C4Network2ClientListBox(), C4Network2ClientListDlg::C4Network2ClientListDlg(), C4Network2Stats::C4Network2Stats(), C4StartupModsDlg::C4StartupModsDlg(), C4StartupModsDownloader::C4StartupModsDownloader(), C4StartupNetDlg::C4StartupNetDlg(), C4GameLobby::Countdown::Countdown(), DoInit(), C4GUI::InfoDialog::InfoDialog(), C4Network2::InitHost(), C4Network2::InitialConnect::InitialConnect(), C4Network2::InitLeague(), C4AulDebug::Listen(), C4GameLobby::MainDlg::MainDlg(), StdScheduler::Set(), C4Network2::StartStreaming(), and StdScheduler::StdScheduler().
|
inherited |
Definition at line 281 of file StdSchedulerMac.mm.
References SCHAdditions::assignAdditionForProc:, and SCHAdditions::requestAdditionsForScheduler:.
Referenced by StdScheduler::Add().
|
protected |
Definition at line 495 of file C4Application.cpp.
References C4Draw::COLOR_DEPTH, Config, C4AbstractApp::GetIndexedDisplayMode(), C4Config::Graphics, LogF(), C4ConfigGraphics::Monitor, C4ConfigGraphics::RefreshRate, C4ConfigGraphics::ResX, and C4ConfigGraphics::ResY.
Referenced by DoInit().
|
inlineinherited |
Definition at line 123 of file C4App.h.
References C4AbstractApp::MainThread.
Referenced by Log(), LogSilent(), C4Surface::PageFlip(), CStdGL::PrepareRendering(), and ShaderLog().
|
inherited |
Definition at line 294 of file StdSchedulerMac.mm.
References SCHAdditions::additionForProc:, SCHAddition::changed, and SCHAdditions::requestAdditionsForScheduler:.
|
overridevirtual |
Reimplemented from C4AbstractApp.
Definition at line 600 of file C4Application.cpp.
References C4Language::Clear(), C4EditCursor::Clear(), C4Game::Clear(), C4AbstractApp::Clear(), C4MusicSystem::Clear(), C4SoundSystem::Clear(), C4Console::Clear(), C4FullScreen::Clear(), C4Language::ClearLanguage(), C4Group::Close(), C4Network2IRCClient::Close(), Console, C4Console::EditCursor, FullScreen, Game, C4Language::HasStringTable(), IRCClient, Languages, LoadResStr(), Log(), MusicSystem, pDraw, pGamePadControl, pGameTimer, StdScheduler::Remove(), C4AbstractApp::RestoreVideoMode(), SoundSystem, SystemGroup, and CPNGFile::WaitForSaves().
Referenced by DoInit(), and main().
void C4Application::ClearCommandLine | ( | ) |
Definition at line 189 of file C4Application.cpp.
References Game, and C4Game::PlayerFilenames.
Referenced by C4Console::FileNew(), C4Console::FileOpen(), C4Console::FileOpenWPlrs(), and ParseCommandLine().
|
inline |
Definition at line 56 of file C4Application.h.
References C4Group::Close(), and SystemGroup.
|
inherited |
Definition at line 34 of file C4AppMac.mm.
References Log(), and C4ScriptGuiWindowPropertyName::text.
Referenced by C4GUI::MessageDialog::KeyCopy().
|
overrideprotectedvirtual |
Implements C4AbstractApp.
Definition at line 62 of file C4Application.cpp.
References C4AbstractApp::Active, StdScheduler::Add(), Application, ApplyResolutionConstraints(), C4_OS, C4AS_None, C4AS_PreInit, C4CFN_FLS, C4CFN_System, C4Group_SetProcessCallback(), C4Group_SetSortList(), C4Group_SetTempPath(), C4Config::CleanupTempUpdateFolder(), Clear(), Config, Console, StdStrBuf::Copy(), DDrawInit(), C4Config::Default(), C4ConfigGeneral::ExePath, FullScreen, C4ConfigGeneral::GamepadEnabled, C4Config::General, GetConfigHeight(), GetConfigWidth(), StdStrBuf::getData(), GetRevision(), C4Config::Graphics, C4Language::HasStringTable(), IncomingUpdate, C4Language::Init(), C4Config::Init(), C4Reloc::Init(), C4Console::Init(), C4FullScreen::Init(), C4Config::IsCorrupted(), isEditor, C4ConfigGeneral::LanguageEx, Languages, C4Config::Load(), C4Language::LoadLanguage(), LoadResStr(), Log(), LogF(), LogFatal(), C4AbstractApp::MessageDialog(), C4ConfigGraphics::Monitor, C4Reloc::Open(), OpenExtraLogs(), OpenLog(), ParseCommandLine(), pGamePadControl, pGameTimer, ProcessCallback(), C4AbstractApp::pWindow, C4ConfigGraphics::RefreshRate, Reloc, C4Config::Save(), SEqual2NoCase(), C4Window::SetSize(), C4AbstractApp::SetVideoMode(), ShowGfxErrorDialog(), C4ConfigGeneral::SystemDataPath, SystemGroup, C4ConfigGeneral::TempPath, C4ConfigGeneral::UserDataPath, C4ConfigGraphics::Windowed, C4ConfigGraphics::WindowX, and C4ConfigGraphics::WindowY.
|
overridevirtualinherited |
Reimplemented from StdScheduler.
Definition at line 59 of file C4App.cpp.
References StdScheduler::DoScheduleProcs(), C4AbstractApp::FlushMessages(), and C4AbstractApp::fQuitMsgReceived.
void C4Application::Draw | ( | ) |
Definition at line 760 of file C4Application.cpp.
References Console, C4Console::Execute(), C4FullScreen::Execute(), FullScreen, and isEditor.
Referenced by C4ApplicationGameTimer::Execute().
|
inlineinherited |
Definition at line 99 of file C4App.h.
References C4AbstractApp::sLastError.
Referenced by C4Draw::Error(), and C4AbstractApp::SetVideoMode().
|
inherited |
Definition at line 115 of file C4AppSDL.cpp.
References C4AbstractApp::fQuitMsgReceived.
Referenced by C4AbstractApp::DoScheduleProcs(), C4Network2::FinalInit(), and C4Game::SetInitProgress().
bool C4Application::FullScreenMode | ( | ) |
Definition at line 873 of file C4Application.cpp.
References Config, Game, C4Config::Graphics, isEditor, C4Game::IsRunning, and C4ConfigGraphics::Windowed.
Referenced by GameTick(), GetConfigHeight(), GetConfigWidth(), and OnResolutionChanged().
void C4Application::GameTick | ( | ) |
Definition at line 683 of file C4Application.cpp.
References Application, C4AS_AfterGame, C4AS_Game, C4AS_None, C4AS_PreInit, C4AS_Quit, C4AS_StartGame, C4AS_Startup, C4Game::Clear(), C4Startup::CloseStartup(), Config, Console, C4Game::Execute(), C4GamePadControl::Execute(), C4SoundSystem::Execute(), C4MusicSystem::Execute(), C4Game::fLobby, C4Game::fObserve, C4Game::fQuitWithError, FullScreenMode(), Game, GetConfigHeight(), GetConfigWidth(), C4Window::GrabMouse(), C4Config::Graphics, C4Game::Init(), isEditor, C4Game::IsRunning, C4ConfigGraphics::Monitor, MusicSystem, C4Game::NetworkActive, C4ConsoleGUI::OnStartGame(), pGamePadControl, PreInit(), C4AbstractApp::pWindow, Quit(), QuitGame(), C4ConfigGraphics::RefreshRate, C4Game::SetScenarioFilename(), C4AbstractApp::SetVideoMode(), SoundSystem, C4GameLobby::UserAbort, and C4ConfigGraphics::Windowed.
Referenced by C4ApplicationGameTimer::Execute().
|
inline |
Definition at line 84 of file C4Application.h.
References Config, FullScreenMode(), C4Config::Graphics, C4ConfigGraphics::ResY, and C4ConfigGraphics::WindowY.
Referenced by DoInit(), GameTick(), and C4FullScreen::Init().
|
inline |
Definition at line 83 of file C4Application.h.
References Config, FullScreenMode(), C4Config::Graphics, C4ConfigGraphics::ResX, and C4ConfigGraphics::WindowX.
Referenced by DoInit(), GameTick(), and C4FullScreen::Init().
|
inherited |
Definition at line 335 of file C4AppSDL.cpp.
Referenced by ApplyResolutionConstraints().
|
inlineinherited |
|
inherited |
Definition at line 120 of file StdScheduler.cpp.
References C4TimeMilliseconds::PositiveInfinity.
Referenced by C4AbstractApp::Run(), and StdScheduler::ScheduleProcs().
|
inlineinherited |
Definition at line 245 of file StdScheduler.h.
Referenced by C4InteractiveThread::AddProc(), and C4InteractiveThread::RemoveProc().
|
inline |
Definition at line 72 of file C4Application.h.
Referenced by DoInit(), C4Network2::Join(), and C4ClientCore::SetLocal().
|
inlineinherited |
Definition at line 246 of file StdScheduler.h.
Referenced by C4InteractiveThread::RemoveProc().
|
inherited |
Definition at line 87 of file C4AppSDL.cpp.
References C4AbstractApp::DoInit(), and LogF().
Referenced by main().
|
inherited |
Definition at line 58 of file C4AppMac.mm.
Referenced by C4GUI::Edit::OnContext().
|
inlineinherited |
Definition at line 247 of file StdScheduler.h.
|
inline |
Definition at line 70 of file C4Application.h.
References C4AS_AfterGame.
Referenced by C4GUI::Dialog::DoModal().
|
inherited |
Definition at line 63 of file C4AppMac.mm.
Referenced by DoInit().
void C4Application::NextTick | ( | ) |
Definition at line 867 of file C4Application.cpp.
References pGameTimer.
Referenced by C4GameControlNetwork::CheckCompleteCtrl(), C4MessageInput::ProcessCommand(), and C4Game::Ticks().
|
inherited |
Definition at line 89 of file C4App.cpp.
References C4AbstractApp::Active, C4Window::FlashWindow(), and C4AbstractApp::pWindow.
Referenced by C4Network2::DoLobby().
|
overridevirtual |
Implements C4AbstractApp.
Definition at line 835 of file C4Application.cpp.
References C4AS_Game, C4AS_PreInit, C4AS_Startup, Game, MessageInput, C4MessageInput::ProcessInput(), and C4Game::SetScenarioFilename().
Referenced by C4StdInProc::Execute().
|
inlineprotectedvirtualinherited |
Definition at line 268 of file StdScheduler.h.
|
overridevirtual |
Implements C4AbstractApp.
Definition at line 800 of file C4Application.cpp.
References C4AS_Startup, Game, C4Startup::Get(), C4Game::OnKeyboardLayoutChanged(), and C4Startup::OnKeyboardLayoutChanged().
Referenced by ConsoleDlgProc().
|
overridevirtual |
Implements C4AbstractApp.
Definition at line 778 of file C4Application.cpp.
References Config, FullScreenMode(), Game, C4Window::GetSize(), C4Config::Graphics, C4Rect::Hgt, C4Draw::OnResolutionChanged(), C4Game::OnResolutionChanged(), pDraw, C4Window::pSurface, C4AbstractApp::pWindow, C4Surface::UpdateSize(), C4Rect::Wdt, C4ConfigGraphics::WindowX, and C4ConfigGraphics::WindowY.
void C4Application::OpenGame | ( | const char * | scenario = nullptr | ) |
Definition at line 655 of file C4Application.cpp.
References C4AS_AfterGame, C4AS_StartGame, C4AS_Startup, Game, SetNextMission(), and C4Game::SetScenarioFilename().
Referenced by C4StartupNetDlg::DoOK(), C4Console::FileNew(), C4Console::FileOpen(), C4Console::FileOpenWPlrs(), C4StartupMainDlg::OnNetJoin(), and C4StartupScenSelDlg::StartScenario().
|
inline |
Definition at line 55 of file C4Application.h.
References C4CFN_System, C4Group::IsOpen(), C4Group::Open(), and SystemGroup.
Referenced by C4Game::InitScriptEngine().
|
protected |
Definition at line 194 of file C4Application.cpp.
References _MAX_PATH, C4Reloc::AddPath(), AltDirectorySeparator, StdStrBuf::Append(), Application, argv0, CFG_MaxString, CheckForUpdates, ClearCommandLine(), C4ConfigNetwork::Comment, Config, StdStrBuf::Copy(), ValidatedStdCopyStrBufBase::CopyValidated(), C4Game::DebugHost, C4ConfigGraphics::DebugOpenGL, C4Game::DebugPassword, C4Game::DebugPort, C4ConfigGeneral::DebugRec, C4ConfigGeneral::DebugRecExternalFile, C4ConfigGeneral::DebugRecWrite, C4Game::DebugWait, C4Game::DefinitionFilenames, C4Game::DirectJoinAddress, DirectorySeparator, DirSep, C4Game::fLobby, C4Game::fObserve, Game, C4Config::General, StdStrBuf::getData(), GetExtension(), GetFilename(), GetWorkingDirectory(), C4Config::Graphics, C4Game::HasScenario(), C4Game::iLobbyTimeout, IncomingKeyfile, IncomingUpdate, isEditor, IsGlobalPath(), C4ConfigGeneral::LanguageEx, C4ConfigNetwork::LeagueServerSignUp, Log(), LogF(), C4ConfigNetwork::MasterServerSignUp, Network, C4Config::Network, C4Game::NetworkActive, C4ConfigNetwork::NoRuntimeJoin, OCLicenses, C4ConfigGeneral::OpenScenarioInGameMode, C4Game::PlayerFilenames, C4ConfigNetwork::PortTCP, C4ConfigNetwork::PortUDP, Quit(), QuitAfterGame, C4Game::Record, C4Game::RecordDumpFile, C4Game::RecordStream, Reloc, StdStrBuf::ReplaceChar(), SAddModule(), SAdvancePast(), C4Game::ScenarioFilename, SClearFrontBack(), SCopy(), SEqual2NoCase(), SEqualNoCase(), C4Network2::SetPassword(), C4Game::SetScenarioFilename(), C4Startup::SetStartScreen(), C4ScenarioParameters::SetValue(), SLen(), StdStrBuf::SplitAtChar(), SReplaceChar(), and C4Game::StartupScenarioParameters.
Referenced by DoInit().
|
inherited |
Definition at line 47 of file C4AppMac.mm.
Referenced by C4GUI::Edit::MouseInput().
|
protected |
Definition at line 530 of file C4Application.cpp.
References C4AS_StartGame, C4AS_Startup, C4CFN_StartupBackgroundMain, Config, C4ConfigGeneral::DefRec, C4ConfigSound::FEMusic, FullScreen, Game, C4Config::General, C4GUI::GetScreenHgt(), C4GUI::GetScreenWdt(), C4Config::Graphics, GraphicsResource, GraphicsSystem, C4Game::HasScenario(), C4GraphicsResource::Init(), C4SoundSystem::Init(), C4MusicSystem::Init(), C4GraphicsSystem::InitLoaderScreen(), C4Startup::InitStartup(), isEditor, LoadResStr(), Log(), LogFatal(), C4GraphicsSystem::MessageBoard, MusicSystem, C4Game::NetworkActive, C4MusicSystem::Play(), C4Game::PreInit(), C4Window::pSurface, C4Game::Record, C4Facet::Set(), C4Game::SetInitProgress(), C4ConfigGraphics::ShowStartupMessages, C4Config::Sound, and SoundSystem.
Referenced by GameTick().
|
staticprotected |
Definition at line 594 of file C4Application.cpp.
References Console, and C4ConsoleGUI::Out().
Referenced by DoInit().
|
overridevirtual |
Reimplemented from C4AbstractApp.
Definition at line 640 of file C4Application.cpp.
References C4AS_Quit, C4GraphicsResource::ClearFonts(), Config, C4Config::ConfigLoaded, GraphicsResource, C4AbstractApp::Quit(), C4Config::Save(), and C4Startup::Unload().
Referenced by C4Console::Clear(), C4Console::Close(), C4FullScreen::Close(), ConsoleDlgProc(), C4StdInProc::Execute(), GameTick(), C4Startup::InitStartup(), C4Network2::OnClientDisconnect(), C4StartupMainDlg::OnClosed(), C4StartupMainDlg::OnExitBtn(), C4GameLobby::Countdown::OnSec1Timer(), ParseCommandLine(), QuitGame(), and RestartApplication().
void C4Application::QuitGame | ( | ) |
Definition at line 670 of file C4Application.cpp.
References C4AS_AfterGame, Quit(), and QuitAfterGame.
Referenced by C4Game::Abort(), C4Console::FileClose(), GameTick(), and C4Game::ShowGameOverDlg().
|
inherited |
Definition at line 96 of file StdScheduler.cpp.
References StdScheduler::Removing().
Referenced by C4Network2::Clear(), StdScheduler::Clear(), Clear(), C4GameLobby::ScenDesc::Deactivate(), C4GameOptionsList::Deactivate(), C4Network2ResDlg::Deactivate(), C4Network2::DeinitLeague(), StdSchedulerThread::Remove(), C4Network2::StopStreaming(), C4AbstractApp::~C4AbstractApp(), C4GameOverDlg::~C4GameOverDlg(), C4GameSec1Timer::~C4GameSec1Timer(), C4InteractiveThread::~C4InteractiveThread(), C4Network2ClientListBox::~C4Network2ClientListBox(), C4Network2ClientListDlg::~C4Network2ClientListDlg(), C4Network2Stats::~C4Network2Stats(), C4StartupModsDlg::~C4StartupModsDlg(), C4StartupModsDownloader::~C4StartupModsDownloader(), C4StartupNetDlg::~C4StartupNetDlg(), C4GameLobby::Countdown::~Countdown(), C4GUI::InfoDialog::~InfoDialog(), and C4GameLobby::MainDlg::~MainDlg().
|
inherited |
Definition at line 286 of file StdSchedulerMac.mm.
References SCHAdditions::requestAdditionsForScheduler:.
Referenced by StdScheduler::Remove().
|
inherited |
Definition at line 443 of file C4AppSDL.cpp.
References C4AbstractApp::pWindow.
Referenced by Clear().
|
inherited |
Definition at line 26 of file C4App.cpp.
References Application, Clamp(), C4AbstractApp::fQuitMsgReceived, StdScheduler::GetNextTick(), isEditor, C4TimeMilliseconds::Now(), and StdScheduler::ScheduleProcs().
Referenced by main().
|
inherited |
Definition at line 130 of file StdScheduler.cpp.
References StdScheduler::DoScheduleProcs(), StdScheduler::GetNextTick(), and C4TimeMilliseconds::Now().
Referenced by C4AulDebug::DebugStep(), C4Network2::DoLobby(), C4GUI::Dialog::DoModal(), C4ScenarioListLoader::DoProcessCallback(), C4GUI::Dialog::Execute(), C4Network2::FinalInit(), C4Game::InitNetworkFromAddress(), C4Network2::LeagueEnd(), C4Network2::LeaguePlrAuth(), C4Network2::LeaguePlrAuthCheck(), C4Network2::LeagueStart(), C4Network2::LeagueWaitNotBusy(), C4AulDebug::Listen(), C4Network2::RetrieveRes(), and C4AbstractApp::Run().
|
inherited |
Definition at line 75 of file StdScheduler.cpp.
References StdScheduler::Add(), and StdScheduler::Clear().
Referenced by StdSchedulerThread::Set().
bool C4Application::SetGameFont | ( | const char * | szFontFace, |
int32_t | iFontSize | ||
) |
Definition at line 807 of file C4Application.cpp.
References C4FontLoader::C4FT_Main, Config, StdStrBuf::Copy(), C4GraphicsResource::Files, FontLoader, C4Config::General, C4Startup::Get(), StdStrBuf::getData(), C4Startup::Graphics, GraphicsResource, C4FontLoader::InitFont(), C4GraphicsResource::InitFonts(), C4StartupGraphics::InitFonts(), C4ConfigGeneral::RXFontName, C4ConfigGeneral::RXFontSize, SCopy(), and SLen().
void C4Application::SetGameTickDelay | ( | int | iDelay | ) |
Definition at line 772 of file C4Application.cpp.
References pGameTimer, and C4ApplicationGameTimer::SetGameTickDelay().
void C4Application::SetNextMission | ( | const char * | szMissionFilename | ) |
Definition at line 854 of file C4Application.cpp.
References AltDirectorySeparator, and DirectorySeparator.
Referenced by OpenGame().
|
inherited |
Definition at line 354 of file C4AppSDL.cpp.
References C4AbstractApp::Error(), LogF(), C4AbstractApp::OnResolutionChanged(), C4AbstractApp::pWindow, and C4Window::SetSize().
Referenced by DoInit(), and GameTick().
|
inherited |
Definition at line 276 of file StdSchedulerMac.mm.
References SCHAdditions::requestAdditionsForScheduler:, and SCHAdditions::start.
|
inherited |
Definition at line 150 of file StdScheduler.cpp.
Referenced by StdSchedulerThread::Stop().
|
inherited |
Definition at line 63 of file C4App.h.
Referenced by ConsoleDlgProc(), DoInit(), C4MessageBoard::Draw(), C4AbstractApp::NotifyUserIfInactive(), C4Game::SaveGameTitle(), C4GraphicsSystem::StartDrawing(), and C4MouseControl::UpdateClip().
const char* C4Application::argv0 |
Definition at line 75 of file C4Application.h.
Referenced by ParseCommandLine(), and RestartApplication().
|
protected |
Referenced by DoInit(), and GameTick().
int C4Application::CheckForUpdates {false} |
Definition at line 80 of file C4Application.h.
Referenced by C4StartupMainDlg::OnShown(), and ParseCommandLine().
|
inherited |
Definition at line 81 of file C4App.h.
Referenced by C4AbstractApp::DoScheduleProcs(), C4AbstractApp::FlushMessages(), C4AbstractApp::Quit(), and C4AbstractApp::Run().
|
protected |
Definition at line 99 of file C4Application.h.
Referenced by ParseCommandLine().
std::string C4Application::IncomingUpdate |
Definition at line 78 of file C4Application.h.
Referenced by DoInit(), C4StartupMainDlg::OnShown(), and ParseCommandLine().
C4InteractiveThread C4Application::InteractiveThread |
Definition at line 45 of file C4Application.h.
Referenced by C4Network2ResList::AddByCore(), C4Network2ResList::AddLoad(), C4Network2ResChunk::AddTo(), C4ChatControl::C4ChatControl(), C4StartupModsDlg::C4StartupModsDlg(), C4StartupNetDlg::C4StartupNetDlg(), C4GameControlNetwork::CheckCompleteCtrl(), C4Network2IO::CheckTimeout(), C4StartupNetDlg::CheckVersionUpdate(), C4Network2IO::Clear(), C4StartupNetListEntry::ClearRef(), C4Network2Res::Derive(), C4GameControlNetwork::DoInput(), C4Network2IO::HandlePacket(), C4Network2IO::Init(), C4Network2IRCClient::Join(), C4Network2Res::OnChunk(), C4Network2IO::OnConn(), C4ChatControl::OnConnectBtn(), C4Network2IO::OnDisconn(), C4Network2IO::OnError(), C4Network2IO::OnPacket(), C4Network2::OnPuncherConnect(), C4Network2ResList::OnResComplete(), C4Network2Res::SetLoad(), C4StartupNetListEntry::SetRefQuery(), C4Network2Res::StartLoad(), C4ChatControl::~C4ChatControl(), C4StartupModsDlg::~C4StartupModsDlg(), and C4StartupNetDlg::~C4StartupNetDlg().
C4Network2IRCClient& C4Application::IRCClient |
Definition at line 47 of file C4Application.h.
Referenced by C4ChatDlg::C4ChatDlg(), C4StartupNetDlg::C4StartupNetDlg(), Clear(), C4ChatDlg::IsChatActive(), and C4ChatDlg::StopChat().
int C4Application::isEditor {false} |
Definition at line 76 of file C4Application.h.
Referenced by C4MainMenu::ActivateDisplay(), C4MainMenu::ActivateMain(), C4GameParameters::CompileFunc(), C4Network2::DeactivateInactiveClients(), DoInit(), C4Game::DoKeyboardInput(), C4GraphicsSystem::DoSaveScreenshot(), Draw(), C4Viewport::Draw(), C4GUI::Screen::Draw(), C4Player::Eliminate(), C4GraphicsSystem::Execute(), C4Viewport::Execute(), C4Network2::FinalInit(), C4GraphicsSystem::FinishDrawing(), FullScreenMode(), GameTick(), C4Game::Init(), C4Viewport::Init(), C4Game::InitGame(), C4Network2::InitLeague(), C4Network2Reference::InitLocal(), C4Game::InitNetworkFromAddress(), C4Game::InitPlayers(), C4Shader::IsLogging(), C4Object::IsVisible(), C4MessageInput::KeyStartTypeIn(), C4Network2::LeagueEnd(), C4Network2::LeaguePlrAuth(), C4Network2::LeagueShowError(), C4Network2::LeagueStart(), C4MouseControl::Move(), C4Game::OpenScenario(), ParseCommandLine(), PreInit(), C4Game::PreInit(), C4ViewportList::RecalculateViewports(), C4AbstractApp::Run(), C4Game::SaveGameTitle(), C4Player::ScrollView(), C4GUI::Dialog::SetTitle(), C4Viewport::SetZoom(), C4GUI::Dialog::Show(), C4GUI::Screen::ShowDialog(), C4Game::ShowGameOverDlg(), and C4MouseControl::UpdateClip().
|
inherited |
Definition at line 128 of file C4App.h.
Referenced by C4AbstractApp::AssertMainThread().
C4MusicSystem C4Application::MusicSystem |
Definition at line 41 of file C4Application.h.
Referenced by C4SoundModifier::C4SoundModifier(), C4MusicFileSDL::CheckIfPlaying(), C4Game::Clear(), Clear(), C4Game::CompileFunc(), ConsoleDlgProc(), C4Game::Default(), C4GraphicsSystem::DoSaveScreenshot(), C4SoundSystem::Execute(), GameTick(), C4SoundModifierList::Init(), C4SoundSystem::Init(), C4Game::InitKeyboard(), C4StartupOptionsDlg::KeyMusicToggle(), C4SoundEffect::Load(), C4MainMenu::MenuCommand(), C4SoundInstance::Playing(), PreInit(), C4SoundLoaders::WavLoader::ReadInfo(), C4SoundInstance::Start(), C4SoundModifierReverb::Update(), C4SoundModifierEcho::Update(), and C4SoundModifierEqualizer::Update().
C4GamePadControl* C4Application::pGamePadControl {nullptr} |
Definition at line 43 of file C4Application.h.
Referenced by Clear(), DoInit(), GameTick(), C4GameControl::PrepareInput(), and ~C4Application().
|
protected |
Definition at line 88 of file C4Application.h.
Referenced by Clear(), DoInit(), NextTick(), and SetGameTickDelay().
|
inherited |
Definition at line 80 of file C4App.h.
Referenced by C4StartupOptionsDlg::C4StartupOptionsDlg(), DoInit(), GameTick(), C4Draw::Init(), C4MouseControl::Move(), C4AbstractApp::NotifyUserIfInactive(), OnResolutionChanged(), CStdGL::RestoreDeviceObjects(), C4AbstractApp::RestoreVideoMode(), and C4AbstractApp::SetVideoMode().
|
protected |
Definition at line 97 of file C4Application.h.
Referenced by ParseCommandLine(), and QuitGame().
bool C4Application::restartAtEnd {false} |
Definition at line 38 of file C4Application.h.
Referenced by main().
|
protectedinherited |
Definition at line 156 of file C4App.h.
Referenced by C4AbstractApp::Error(), and C4AbstractApp::GetLastError().
C4SoundSystem C4Application::SoundSystem |
Definition at line 42 of file C4Application.h.
Referenced by C4SoundModifier::C4SoundModifier(), C4Game::Clear(), Clear(), C4Game::ClearPointers(), C4Game::DropFile(), GameTick(), GetSoundInstance(), C4Game::InitDefs(), C4MainMenu::MenuCommand(), PreInit(), C4Game::ReloadDef(), C4SoundModifierList::SetGlobalModifier(), C4Game::SetGlobalSoundModifier(), C4SoundInstance::SetPlayer(), C4Player::SetSoundModifier(), SoundLevel(), SoundPan(), SoundPitch(), StartSoundEffect(), StopSoundEffect(), and C4SoundModifier::~C4SoundModifier().
C4Group C4Application::SystemGroup |
Definition at line 40 of file C4Application.h.
Referenced by Clear(), CloseSystemGroup(), DoInit(), C4Game::InitPlayerControlSettings(), C4Game::InitScriptEngine(), OpenSystemGroup(), and C4Game::UpdateLanguage().