#include <C4Game.h>
Public Types | |
enum | InitMode { IM_Normal = 0 , IM_Section = 1 , IM_ReInit = 2 } |
Public Member Functions | |
C4Game () | |
~C4Game () | |
void | Clear () |
void | Abort (bool fApproved=false) |
void | Evaluate () |
void | ShowGameOverDlg () |
bool | DoKeyboardInput (C4KeyCode vk_code, C4KeyEventType event_type, bool alt, bool ctrl, bool shift, bool repeated, class C4GUI::Dialog *for_dialog=nullptr, bool fPlrCtrlOnly=false, int32_t strength=-1) |
bool | DoKeyboardInput (C4KeyCodeEx key, C4KeyEventType event_type, class C4GUI::Dialog *for_dialog=nullptr, bool fPlrCtrlOnly=false, int32_t strength=-1) |
void | DrawCrewOverheadText (C4TargetFacet &cgo, int32_t player_nr) |
void | FixRandom (uint64_t seed) |
bool | Init () |
bool | PreInit () |
void | SetScenarioFilename (const char *) |
bool | HasScenario () |
bool | Execute () |
C4Player * | JoinPlayer (const char *filename, int32_t at_client, const char *at_client_name, C4PlayerInfo *info) |
void | OnPlayerJoinFinished () |
bool | DoGameOver () |
bool | CanQuickSave () |
bool | QuickSave (const char *filename, const char *title, bool force_save=false) |
void | SetInitProgress (float to_progress) |
void | OnResolutionChanged (unsigned int res_x, unsigned int res_y) |
void | OnKeyboardLayoutChanged () |
void | InitFullscreenComponents (bool is_running) |
bool | ToggleChat () |
bool | TogglePause () |
bool | Pause () |
bool | Unpause () |
bool | IsPaused () |
void | Synchronize (bool save_player_files) |
void | SyncClearance () |
bool | DropFile (const char *filename, float x, float y) |
bool | DropDef (C4ID id, float x, float y) |
bool | ReloadFile (const char *filepath) |
bool | ReloadDef (C4ID id) |
bool | ReloadParticle (const char *name) |
void | ClearPointers (C4Object *obj) |
C4Object * | CreateObject (C4PropList *type, C4Object *creator, int32_t owner=NO_OWNER, int32_t x=50, int32_t y=50, int32_t r=0, bool grow_from_center=false, C4Real xdir=Fix0, C4Real ydir=Fix0, C4Real rdir=Fix0, int32_t controller=NO_OWNER) |
C4Object * | CreateObject (C4ID type, C4Object *creator, int32_t owner=NO_OWNER, int32_t x=50, int32_t y=50, int32_t r=0, bool grow_from_center=false, C4Real xdir=Fix0, C4Real ydir=Fix0, C4Real rdir=Fix0, int32_t controller=NO_OWNER) |
C4Object * | CreateObjectConstruction (C4PropList *type, C4Object *creator, int32_t owner, int32_t center_x=0, int32_t bottom_y=0, int32_t con=1, bool adjust_terrain=false) |
C4Object * | CreateInfoObject (C4ObjectInfo *info, int32_t owner, int32_t x=50, int32_t y=50) |
C4Object * | FindConstuctionSiteBlock (int32_t x, int32_t y, int32_t wdt, int32_t hgt) |
C4Object * | FindObject (C4Def *def, int32_t x=0, int32_t y=0, int32_t wdt=0, int32_t hgt=0, DWORD ocf=OCF_All, C4Object *find_next=nullptr) |
C4Object * | FindVisObject (float x, float y, int32_t player_nr, const C4Facet &viewport_game, const C4Facet &viewport_gui, float game_x, float game_y, DWORD category, float gui_x, float gui_y) |
int32_t | ObjectCount (C4ID id) |
void | CastObjects (C4ID id, C4Object *creator, int32_t num, int32_t level, int32_t x, int32_t y, int32_t owner=NO_OWNER, int32_t controller=NO_OWNER, C4ValueArray *out_objects=nullptr) |
C4Object * | PlaceVegetation (C4PropList *def, int32_t x, int32_t y, int32_t wdt, int32_t hgt, int32_t growth, C4PropList *shape_proplist, C4PropList *out_pos_proplist) |
C4Object * | PlaceAnimal (C4PropList *def) |
C4Value | GRBroadcast (const char *function, C4AulParSet *pars=nullptr, bool pass_error=false, bool reject_test=false) |
bool | LoadScenarioSection (const char *section_name, DWORD flags) |
bool | CreateSectionFromTempFile (const char *section_name, const char *temp_filename) |
bool | DrawTextSpecImage (C4Facet &target, const char *spec, class C4DrawTransform *transform, uint32_t color=0xff) |
float | GetTextSpecImageAspect (const char *spec) |
bool | DrawPropListSpecImage (C4Facet &target, C4PropList *spec) |
bool | SpeedUp () |
bool | SlowDown () |
bool | InitKeyboard () |
void | UpdateLanguage () |
bool | InitPlayerControlSettings () |
bool | InitPlayerControlUserSettings () |
void | SetDefaultGamma () |
bool | LoadAdditionalSystemGroup (class C4Group &parent_group) |
bool | SaveGameTitle (C4Group &hGroup) |
void | CompileFunc (StdCompiler *compiler, CompileSettings settings, C4ValueNumbers *) |
bool | SaveData (C4Group &group, bool save_section, bool save_exact, bool save_sync, C4ValueNumbers *) |
bool | ToggleChart () |
void | SetGlobalSoundModifier (C4PropList *modifier_props) |
C4String * | GetTranslatedString (const class C4Value &input_string, C4Value *selected_language, bool fail_silently) const |
C4PropList * | AllocateTranslatedString () |
Static Public Attributes | |
static constexpr const char * | DirectJoinFilePrefix = "file:" |
Protected Member Functions | |
void | Default () |
void | InitInEarth () |
void | InitVegetation () |
void | InitAnimals () |
void | InitGoals () |
void | InitRules () |
void | InitValueOverloads () |
void | InitEnvironment () |
void | CloseScenario () |
void | DeleteObjects (bool delete_inactive) |
void | ExecObjects () |
void | Ticks () |
bool | CheckObjectEnumeration () |
bool | LoadScenarioComponents () |
bool | InitGame (C4Group &group, InitMode init_mode, bool load_sky, C4ValueNumbers *) |
bool | InitGameFinal (InitMode init_mode) |
bool | InitNetworkFromAddress (const char *address) |
bool | InitNetworkFromReferenceFile (const char *temp_filename) |
bool | InitNetworkFromReference (const C4Network2Reference &Reference) |
bool | InitNetworkHost () |
bool | InitControl () |
bool | InitScriptEngine () |
bool | LinkScriptEngine () |
bool | ReLinkScriptEngine () |
bool | InitPlayers (C4ValueNumbers *) |
bool | OpenScenario () |
bool | InitDefs () |
bool | InitMaterialTexture () |
bool | GameOverCheck () |
bool | PlaceInEarth (C4ID id) |
bool | CompileRuntimeData (C4Group &group, InitMode init_mode, bool exact, bool sync, C4ValueNumbers *) |
C4Object * | NewObject (C4PropList *def, C4Object *creator, int32_t owner, C4ObjectInfo *info, int32_t x, int32_t y, int32_t r, C4Real xdir, C4Real ydir, C4Real rdir, int32_t con, int32_t controller, bool grow_from_center) |
void | ClearObjectPtrs (C4Object *to_obj) |
void | ObjectRemovalCheck () |
bool | ToggleDebugMode () |
bool | ActivateMenu (const char *command) |
enum C4Game::InitMode |
C4Game::C4Game | ( | ) |
Definition at line 97 of file C4Game.cpp.
C4Game::~C4Game | ( | ) |
Definition at line 114 of file C4Game.cpp.
References C4Startup::Unload().
void C4Game::Abort | ( | bool | fApproved = false | ) |
Definition at line 4541 of file C4Game.cpp.
References Application, C4GameControl::ClientID(), Control, Evaluate(), EvaluateOnAbort, Game, GameOver, C4PlayerList::GetLocalByIndex(), C4GameControl::isCtrlHost(), C4Network2::isEnabled(), C4GameParameters::isLeague(), Network, Parameters, Players, C4Application::QuitGame(), C4PlayerList::RemoveAtRemoteClient(), C4PlayerList::RemoveLocal(), C4Network2::Vote(), VT_Cancel, and VT_Kick.
Referenced by C4AbortGameDialog::OnClosed().
|
protected |
Definition at line 4518 of file C4Game.cpp.
References C4PlayerList::GetLocalByIndex(), C4GameOverDlg::IsShown(), C4ScriptGuiWindowPropertyName::player, and Players.
C4PropList * C4Game::AllocateTranslatedString | ( | ) |
Definition at line 4878 of file C4Game.cpp.
References C4VString(), C4StringTable::P, P_Function, P_Translate, C4PropList::SetProperty(), and Strings.
bool C4Game::CanQuickSave | ( | ) |
Definition at line 2374 of file C4Game.cpp.
References C4Network2::isEnabled(), C4Network2::isHost(), LoadResStr(), Log(), and Network.
Referenced by C4MainMenu::ActivateSavegame(), and QuickSave().
void C4Game::CastObjects | ( | C4ID | id, |
C4Object * | creator, | ||
int32_t | num, | ||
int32_t | level, | ||
int32_t | x, | ||
int32_t | y, | ||
int32_t | owner = NO_OWNER , |
||
int32_t | controller = NO_OWNER , |
||
C4ValueArray * | out_objects = nullptr |
||
) |
Definition at line 1763 of file C4Game.cpp.
References C4REAL10(), C4VObj(), CreateObject(), C4ValueArray::GetSize(), itofix(), Random(), C4ValueArray::SetSize(), and C4PropList::Status.
Referenced by C4Landscape::P::BlastMaterial2Objects().
|
protected |
Definition at line 4075 of file C4Game.cpp.
References FormatString(), StdStrBuf::getData(), C4PropList::GetName(), C4Object::GetX(), C4Object::id, C4GameObjects::InactiveObjects, LogFatal(), C4PropListNumbered::Number, Objects, C4PropListNumbered::SetEnumerationIndex(), and C4ID::ToString().
void C4Game::Clear | ( | ) |
Definition at line 672 of file C4Game.cpp.
References C4AulProfiler::Abort(), Application, C4S, C4ST_SHOWSTAT, C4ComponentHost::Clear(), C4GroupSet::Clear(), C4GameControl::Clear(), C4GameParameters::Clear(), C4PlayerControlDefs::Clear(), C4PlayerControlAssignmentSets::Clear(), C4RoundResults::Clear(), C4EditCursor::Clear(), C4GraphicsSystem::Clear(), C4FontLoader::Clear(), C4GameMessageList::Clear(), C4GUI::Screen::Clear(), C4KeyboardInput::Clear(), C4MessageInput::Clear(), C4MouseControl::Clear(), C4Scoreboard::Clear(), C4MapScriptHost::Clear(), C4MaterialMap::Clear(), C4ParticleSystem::Clear(), C4PathFinder::Clear(), C4PXSSystem::Clear(), C4Scenario::Clear(), C4TextureMap::Clear(), C4TransferZones::Clear(), C4Weather::Clear(), StdStrBuf::Clear(), StdMeshMatManager::Clear(), C4Network2::Clear(), C4DefList::Clear(), C4SoundModifierList::Clear(), C4SoundSystem::Clear(), C4PlayerList::Clear(), C4ScenarioParameterDefs::Clear(), C4ScenarioParameters::Clear(), C4AulScriptEngine::Clear(), C4GameScriptHost::Clear(), C4Landscape::Clear(), C4MusicSystem::ClearGame(), C4PropListNumbered::ClearNumberedPropLists(), C4PropListScript::ClearScriptPropLists(), C4PropListNumbered::ClearShelve(), C4Console::CloseGame(), C4FullScreen::CloseMenu(), CloseScenario(), Console, Control, Default(), DefinitionFilenames, Definitions, DeleteObjects(), DirectJoinAddress, C4Console::EditCursor, Evaluate(), Evaluated, C4MusicSystem::FadeOut(), FontLoader, fPreinited, FullScreen, GameOver, GameScript, GameText, GetLogPos(), GraphicsSystem, GroupSet, C4Language::HasStringTable(), Info, IsRunning, KeyboardInput, Landscape, Languages, LoadResStr(), Log(), MainSysLangStringTable, MapScript, MaterialMap, MeshMaterialManager, MessageInput, Messages, C4SoundSystem::Modifiers, MouseControl, C4Application::MusicSystem, Names, Network, NextMission, NextMissionDesc, NextMissionText, Parameters, Particles, PathFinder, pFileMonitor, pGUI, pJoinReference, PlayerControlDefaultAssignmentSets, PlayerControlDefs, PlayerControlUserAssignmentSets, PlayerFilenames, Players, pNetworkStatistics, PointersDenumerated, pScenarioObjectsScript, PXS, QuitLogPos, RecordDumpFile, RecordStream, C4PropListNumbered::ResetEnumerationIndex(), RoundResults, ScenarioFilename, ScenarioLangStringTable, ScenarioParameterDefs, Scoreboard, ScriptEngine, ScriptGuiRoot, SetGlobalSoundModifier(), C4Application::SoundSystem, StartupScenarioParameters, TextureMap, Title, TransferZones, and Weather.
Referenced by C4Application::Clear(), and C4Application::GameTick().
|
protected |
Definition at line 1109 of file C4Game.cpp.
References C4Object::ClearPointers(), C4GameObjects::InactiveObjects, and Objects.
Referenced by ClearPointers().
void C4Game::ClearPointers | ( | C4Object * | obj | ) |
Definition at line 1125 of file C4Game.cpp.
References Application, AulExec, ClearObjectPtrs(), C4AulExec::ClearPointers(), C4ViewportList::ClearPointers(), C4ObjectList::ClearPointers(), C4Console::ClearPointers(), C4GameMessageList::ClearPointers(), C4MessageInput::ClearPointers(), C4MouseControl::ClearPointers(), C4Landscape::ClearPointers(), C4TransferZones::ClearPointers(), C4SoundSystem::ClearPointers(), C4PlayerList::ClearPointers(), C4Effect::ClearPointers(), Console, C4GameObjects::ForeObjects, GameScript, Landscape, MessageInput, Messages, MouseControl, Objects, C4AulScriptEngine::pGlobalEffects, Players, C4GameScriptHost::pScenarioEffects, ScriptEngine, ScriptGuiRoot, C4Application::SoundSystem, TransferZones, and Viewports.
Referenced by C4Object::AssignRemoval(), C4ObjectList::DeleteObjects(), LoadScenarioSection(), C4GameObjects::ResortUnsorted(), and C4Object::StatusDeactivate().
|
protected |
Definition at line 310 of file C4Game.cpp.
References StdStrBuf::Clear(), C4Group::Close(), C4GroupSet::CloseFolders(), EraseItem(), StdStrBuf::getData(), GroupSet, pCurrentScenarioSection, pParentGroup, pScenarioSections, ScenarioFile, and TempScenarioFile.
Referenced by Clear().
void C4Game::CompileFunc | ( | StdCompiler * | compiler, |
CompileSettings | settings, | ||
C4ValueNumbers * | numbers | ||
) |
Definition at line 2055 of file C4Game.cpp.
References C4Value::_getInt(), Application, C4SyncCheckRate, C4V_Enum, C4VNull, Control, C4GameControl::ControlTick, CurrentScenarioSection, C4PropListNumbered::EnumerationIndex, C4PlayerList::First, FormatString(), FrameCounter, fResortAnyObject, StdStrBuf::getData(), C4Landscape::GetSky(), C4Value::GetType(), GlobalSoundModifier, IM_Normal, IM_Section, InitialPlayersJoined, StdCompiler::isDeserializer(), StdCompiler::isSerializer(), iTick10, iTick1000, iTick2, iTick255, iTick3, iTick35, iTick5, Landscape, mkNamingAdapt(), mkParAdapt(), mkStringAdaptMA(), C4Application::MusicSystem, StdCompiler::Name(), StdCompiler::NameEnd(), C4Player::Next, NextMission, NextMissionDesc, NextMissionText, Objects, Players, Scoreboard, ScriptEngine, ScriptGuiRoot, C4PropListNumbered::ShelveNumberedPropLists(), StartupPlayerCount, StartupTeamCount, C4GameControl::SyncRate, Time, StdCompiler::Value(), and Weather.
|
protected |
Definition at line 2153 of file C4Game.cpp.
References C4CFN_Game, C4GameObjects::Clear(), GameText, C4ComponentHost::GetData(), C4ComponentHost::GetDataBuf(), IM_Section, C4ComponentHost::Load(), LoadResStr(), LogF(), mkParAdapt(), C4ObjectList::ObjectCount(), and Objects.
C4Object * C4Game::CreateInfoObject | ( | C4ObjectInfo * | info, |
int32_t | owner, | ||
int32_t | x = 50 , |
||
int32_t | y = 50 |
||
) |
Definition at line 1351 of file C4Game.cpp.
References C4Id2Def(), Fix0, FullCon, C4ObjectInfoCore::id, NewObject(), and NO_OWNER.
Referenced by C4Player::PlaceReadyCrew().
C4Object * C4Game::CreateObject | ( | C4ID | type, |
C4Object * | creator, | ||
int32_t | owner = NO_OWNER , |
||
int32_t | x = 50 , |
||
int32_t | y = 50 , |
||
int32_t | r = 0 , |
||
bool | grow_from_center = false , |
||
C4Real | xdir = Fix0 , |
||
C4Real | ydir = Fix0 , |
||
C4Real | rdir = Fix0 , |
||
int32_t | controller = NO_OWNER |
||
) |
Definition at line 1315 of file C4Game.cpp.
References C4Id2Def(), FullCon, and NewObject().
C4Object * C4Game::CreateObject | ( | C4PropList * | type, |
C4Object * | creator, | ||
int32_t | owner = NO_OWNER , |
||
int32_t | x = 50 , |
||
int32_t | y = 50 , |
||
int32_t | r = 0 , |
||
bool | grow_from_center = false , |
||
C4Real | xdir = Fix0 , |
||
C4Real | ydir = Fix0 , |
||
C4Real | rdir = Fix0 , |
||
int32_t | controller = NO_OWNER |
||
) |
Definition at line 1334 of file C4Game.cpp.
References FullCon, C4PropList::GetDef(), and NewObject().
Referenced by CastObjects(), C4Object::CreateContents(), C4Landscape::P::DigMaterial2Objects(), InitEnvironment(), InitGoals(), InitRules(), C4EditCursor::PerformDuplicationLegacy(), PlaceAnimal(), PlaceInEarth(), C4Player::PlaceReadyMaterial(), and C4Player::PlaceReadyVehic().
C4Object * C4Game::CreateObjectConstruction | ( | C4PropList * | type, |
C4Object * | creator, | ||
int32_t | owner, | ||
int32_t | center_x = 0 , |
||
int32_t | bottom_y = 0 , |
||
int32_t | con = 1 , |
||
bool | adjust_terrain = false |
||
) |
Definition at line 1373 of file C4Game.cpp.
References C4Object::Controller, C4Landscape::DigFreeRect(), Fix0, C4PropList::GetDef(), C4Rect::Hgt, Landscape, NewObject(), NO_OWNER, C4Landscape::RaiseTerrain(), C4Def::Shape, and C4Rect::Wdt.
Referenced by C4Player::PlaceReadyBase().
bool C4Game::CreateSectionFromTempFile | ( | const char * | section_name, |
const char * | temp_filename | ||
) |
Definition at line 4244 of file C4Game.cpp.
References StdStrBuf::getData(), C4ScenarioSection::name, pCurrentScenarioSection, C4ScenarioSection::pNext, C4ScenarioSection::pObjectScripts, pScenarioObjectsScript, pScenarioSections, ReLinkScriptEngine(), C4ScenarioSection::ScenarioLoad(), and SEqualNoCase().
|
protected |
Definition at line 1804 of file C4Game.cpp.
References Application, C4S, cFPS, StdStrBuf::Clear(), C4MusicSystem::ClearGame(), CurrentScenarioSection, DebugHost, DebugPassword, DebugPort, DebugWait, C4GroupSet::Default(), C4GraphicsSystem::Default(), C4GameMessageList::Default(), C4MessageInput::Default(), C4MouseControl::Default(), C4Landscape::Default(), C4MassMoverSet::Default(), C4MaterialMap::Default(), C4PathFinder::Default(), C4PXSSystem::Default(), C4Scenario::Default(), C4TransferZones::Default(), C4Weather::Default(), C4DefList::Default(), C4PlayerList::Default(), C4RankSystem::Default(), C4GameObjects::Default(), DefaultRanks, DefinitionFilenames, Definitions, DirectJoinAddress, DoSkipFrame, Evaluated, EvaluateOnAbort, fLobby, fObserve, FPS, FrameCounter, FrameSkip, fReferenceDefinitionOverride, fResortAnyObject, fScriptCreatedObjects, FullSpeed, GameOver, GameOverDlgShown, GraphicsSystem, GroupSet, HaltCount, iLobbyTimeout, InitialPlayersJoined, InitProgress, IsRunning, iTick10, iTick1000, iTick2, iTick255, iTick3, iTick35, iTick5, Landscape, LastInitProgress, MassMover, MaterialMap, MessageInput, Messages, MouseControl, C4Application::MusicSystem, Objects, PathFinder, pCurrentScenarioSection, pJoinReference, PlayerFilenames, Players, pNetworkStatistics, PointersDenumerated, pParentGroup, pScenarioSections, PXS, StdStrBuf::Ref(), ScenarioFilename, ScenarioTitle, ScriptGuiRoot, StartTime, StartupPlayerCount, StartupTeamCount, Time, TimeGo, TransferZones, and Weather.
Referenced by Clear().
|
protected |
Definition at line 1307 of file C4Game.cpp.
References C4GameObjects::DeleteObjects(), fResortAnyObject, and Objects.
Referenced by Clear(), and LoadScenarioSection().
bool C4Game::DoGameOver | ( | ) |
Definition at line 3806 of file C4Game.cpp.
References Config, C4PlayerList::First, GameOver, GRBroadcast(), LoadResStr(), Log(), C4Player::Next, Players, PSF_OnGameOver, and C4Config::Save().
Referenced by GameOverCheck().
bool C4Game::DoKeyboardInput | ( | C4KeyCode | vk_code, |
C4KeyEventType | event_type, | ||
bool | alt, | ||
bool | ctrl, | ||
bool | shift, | ||
bool | repeated, | ||
class C4GUI::Dialog * | for_dialog = nullptr , |
||
bool | fPlrCtrlOnly = false , |
||
int32_t | strength = -1 |
||
) |
Definition at line 2288 of file C4Game.cpp.
References KEYS_Alt, KEYS_Control, and KEYS_Shift.
Referenced by ConsoleHandleWin32KeyboardMessage(), C4StartupMainDlg::KeyEnterDown(), and C4StartupMainDlg::KeyEnterUp().
bool C4Game::DoKeyboardInput | ( | C4KeyCodeEx | key, |
C4KeyEventType | event_type, | ||
class C4GUI::Dialog * | for_dialog = nullptr , |
||
bool | fPlrCtrlOnly = false , |
||
int32_t | strength = -1 |
||
) |
Definition at line 2296 of file C4Game.cpp.
References C4GUI::Screen::ActivateDialog(), C4Window::Active, Application, C4S, Console, C4KeyboardInput::DoInput(), C4SHead::Film, C4KeyCodeEx::FixShiftKeys(), FullScreen, Game, C4ViewportList::GetViewport(), C4GUI::Screen::HasKeyboardFocus(), C4Scenario::Head, C4Menu::IsActive(), C4Application::isEditor, IsRunning, C4GameOverDlg::IsShown(), C4GUI::Screen::KeyAny(), KeyboardInput, KEYSCOPE_Console, KEYSCOPE_Control, KEYSCOPE_FilmView, KEYSCOPE_FreeView, KEYSCOPE_Fullscreen, KEYSCOPE_FullSMenu, KEYSCOPE_FullSView, KEYSCOPE_Generic, KEYSCOPE_Gui, C4FullScreen::MainMenu, NO_OWNER, pGUI, C4SHead::Replay, and Viewports.
void C4Game::DrawCrewOverheadText | ( | C4TargetFacet & | cgo, |
int32_t | player_nr | ||
) |
Definition at line 1897 of file C4Game.cpp.
References ACenter, C4GM_MaxText, Config, C4Object::Contained, C4Object::Def, C4GraphicsResource::fctMouseCursor, C4PlayerList::First, fixtof(), C4GraphicsResource::FontRegular, StdStrBuf::Format(), StdStrBuf::getData(), CStdFont::GetLineHeight(), C4PropList::GetName(), CStdFont::GetTextExtent(), C4Draw::GetZoom(), C4Config::Graphics, GraphicsResource, Hostile(), C4Object::Info, C4Object::IsVisible(), NO_OWNER, C4Object::OCF, OCF_CrewMember, pDraw, C4ScriptGuiWindowPropertyName::player, Players, C4ObjectInfoCore::Rank, SCopy(), C4Draw::SetZoom(), C4ConfigGraphics::ShowCrewCNames, C4ConfigGraphics::ShowCrewNames, sprintf, C4ObjectInfoCore::sRankName, C4PropList::Status, C4Facet::Surface, SWordWrap(), C4ScriptGuiWindowPropertyName::text, C4Draw::TextOut(), C4Facet::Wdt, C4Facet::X, C4Facet::Y, ZoomData::Zoom, and C4TargetFacet::Zoom.
Referenced by C4Viewport::Draw().
bool C4Game::DrawPropListSpecImage | ( | C4Facet & | target, |
C4PropList * | spec | ||
) |
Definition at line 4687 of file C4Game.cpp.
References C4Def::Draw(), C4DefGraphics::Draw(), C4DefGraphics::Get(), C4String::GetCStr(), C4PropList::GetDef(), C4PropList::GetPropertyInt(), C4PropList::GetPropertyPropList(), C4PropList::GetPropertyStr(), C4Def::Graphics, P_Color, P_Name, and P_Source.
Referenced by C4GameMessage::Draw().
bool C4Game::DrawTextSpecImage | ( | C4Facet & | target, |
const char * | spec, | ||
class C4DrawTransform * | transform, | ||
uint32_t | color = 0xff |
||
) |
Definition at line 4621 of file C4Game.cpp.
References C4Id2Def(), C4Def::Draw(), C4Facet::DrawXT(), GetTextSpecFacet(), C4Facet::Hgt, C4Facet::Surface, C4Facet::Wdt, C4Facet::X, and C4Facet::Y.
Referenced by C4MainMenu::DoRefillInternal().
bool C4Game::DropDef | ( | C4ID | id, |
float | x, | ||
float | y | ||
) |
Definition at line 1746 of file C4Game.cpp.
References C4Id2Def(), CDT_Decide, CID_EMMoveObj, Console, Control, C4ControlEMMoveObject::CreateObject(), C4GameControl::DoInput(), FormatString(), ftofix(), LoadResStr(), and C4ConsoleGUI::Out().
Referenced by DropFile().
bool C4Game::DropFile | ( | const char * | filename, |
float | x, | ||
float | y | ||
) |
Definition at line 1722 of file C4Game.cpp.
References Application, C4D_Load_RX, C4Id2Def(), Config, Console, DefFileGetID(), Definitions, DropDef(), FormatString(), C4Config::General, GetExtension(), GetFilename(), C4ConfigGeneral::LanguageEx, C4DefList::Load(), LoadResStr(), C4ConsoleGUI::Out(), SEqualNoCase(), and C4Application::SoundSystem.
Referenced by C4Viewport::DropFile().
void C4Game::Evaluate | ( | ) |
Definition at line 1864 of file C4Game.cpp.
References Control, C4PlayerList::Evaluate(), Evaluated, C4RoundResults::EvaluateGame(), StdStrBuf::getData(), C4Network2::isEnabled(), C4Network2::isHost(), C4GameParameters::isLeague(), C4GameControl::isRecord(), C4Network2::LeagueGameEvaluate(), LoadResStr(), Log(), Network, Parameters, Players, RoundResults, C4PlayerList::Save(), SHA_DIGEST_LENGTH, and C4GameControl::StopRecord().
Referenced by Abort(), Clear(), and Execute().
|
protected |
Definition at line 1648 of file C4Game.cpp.
References AddDbgRec(), Config, C4GameObjects::CrossCheck(), C4ConfigGeneral::DebugRec, fResortAnyObject, Game, C4Config::General, iTick255, ObjectRemovalCheck(), Objects, RCT_Block, C4GameObjects::ResortUnsorted(), and C4ObjectList::reverse().
Referenced by Execute().
bool C4Game::Execute | ( | ) |
Definition at line 868 of file C4Game.cpp.
References AddDbgRec(), C4ST_RESETPART, C4ST_SHOWPARTSTAT, C4ParticleSystem::CalculateNextStep(), Config, Control, C4ConfigGeneral::DebugRec, C4Landscape::DoRelights(), C4GameControl::DoSyncCheck(), Evaluate(), Evaluated, EXEC_DR, EXEC_S, EXEC_S_DR, ExecObjects(), C4GameControl::Execute(), C4GameMessageList::Execute(), C4MouseControl::Execute(), C4Landscape::Execute(), C4MassMoverSet::Execute(), C4PXSSystem::Execute(), C4Weather::Execute(), C4Network2::Execute(), C4PlayerList::Execute(), C4Effect::Execute(), FrameCounter, GameGo, GameOver, GameOverCheck(), GameOverDlgShown, GameScript, C4Config::General, HaltCount, IsRunning, Landscape, MassMover, Messages, MouseControl, Network, Particles, C4AulScriptEngine::pGlobalEffects, Players, C4GameControl::Prepare(), C4GameScriptHost::pScenarioEffects, PXS, RCT_Block, RCT_DbgFrame, ScriptEngine, ShowGameOverDlg(), Ticks(), and Weather.
Referenced by C4Application::GameTick().
C4Object * C4Game::FindConstuctionSiteBlock | ( | int32_t | x, |
int32_t | y, | ||
int32_t | wdt, | ||
int32_t | hgt | ||
) |
Definition at line 1423 of file C4Game.cpp.
References C4LArea::FirstObjectShapes(), C4Rect::Hgt, C4LArea::NextObjectShapes(), Objects, OCF_Exclusive, C4Rect::Overlap(), C4GameObjects::Sectors, C4Rect::Wdt, C4Rect::x, and C4Rect::y.
Referenced by ConstructionCheck(), and FindConSiteSpot().
C4Object * C4Game::FindObject | ( | C4Def * | def, |
int32_t | x = 0 , |
||
int32_t | y = 0 , |
||
int32_t | wdt = 0 , |
||
int32_t | hgt = 0 , |
||
DWORD | ocf = OCF_All , |
||
C4Object * | find_next = nullptr |
||
) |
Definition at line 1456 of file C4Game.cpp.
References C4Def::Count, C4Object::GetX(), C4Object::GetY(), and Objects.
Referenced by C4Command::Acquire(), and C4EditCursor::Move().
C4Object * C4Game::FindVisObject | ( | float | x, |
float | y, | ||
int32_t | player_nr, | ||
const C4Facet & | viewport_game, | ||
const C4Facet & | viewport_gui, | ||
float | game_x, | ||
float | game_y, | ||
DWORD | category, | ||
float | gui_x, | ||
float | gui_y | ||
) |
Definition at line 1536 of file C4Game.cpp.
References C4D_Foreground, C4D_MouseIgnore, C4OS_NORMAL, C4GameObjects::ForeObjects, C4PlayerList::Get(), Objects, C4ScriptGuiWindowPropertyName::player, Players, C4Facet::X, and C4Facet::Y.
Referenced by C4MouseControl::GetTargetObject().
void C4Game::FixRandom | ( | uint64_t | seed | ) |
Definition at line 3801 of file C4Game.cpp.
References FixedRandom().
Referenced by C4Landscape::Init(), InitControl(), LoadScenarioSection(), PreInit(), and Synchronize().
|
protected |
Definition at line 819 of file C4Game.cpp.
References Control, DoGameOver(), Game, GameOver, C4PlayerList::GetCountNotEliminated(), C4GameControl::isReplay(), iTick35, and Players.
Referenced by Execute().
float C4Game::GetTextSpecImageAspect | ( | const char * | spec | ) |
Definition at line 4649 of file C4Game.cpp.
References C4Id2Def(), StdMesh::GetBoundingBox(), GetTextSpecFacet(), C4Def::Graphics, C4Facet::Hgt, C4Rect::Hgt, C4Def::PictureRect, C4DefGraphics::Type, C4DefGraphics::TYPE_Bitmap, C4DefGraphics::TYPE_Mesh, C4Facet::Wdt, C4Rect::Wdt, StdMeshBox::x1, StdMeshBox::x2, StdMeshBox::y1, and StdMeshBox::y2.
C4String * C4Game::GetTranslatedString | ( | const class C4Value & | input_string, |
C4Value * | selected_language, | ||
bool | fail_silently | ||
) | const |
Definition at line 4805 of file C4Game.cpp.
References C4Value::_getPropList(), C4Value::_getStr(), C4V_Nil, C4V_String, Config, C4StringTable::FindString(), FormatString(), C4Config::General, StdStrBuf::getData(), C4Value::GetDataString(), C4PropList::GetPropertyByS(), C4PropList::GetPropertyStr(), C4PropList::GetSortedLocalProperties(), C4Value::getStr(), C4Value::GetType(), C4ConfigGeneral::LanguageEx, C4StringTable::P, P_Function, P_Translate, SCopySegment(), C4Value::SetString(), and Strings.
C4Value C4Game::GRBroadcast | ( | const char * | function, |
C4AulParSet * | pars = nullptr , |
||
bool | pass_error = false , |
||
bool | reject_test = false |
||
) |
Definition at line 4756 of file C4Game.cpp.
References C4GameScriptHost::Call(), GameScript, C4GameObjects::GRBroadcast(), and Objects.
Referenced by C4Object::AssignDeath(), DoGameOver(), C4Player::Init(), LoadScenarioSection(), OnPlayerJoinFinished(), C4PlayerList::Remove(), C4Player::ScenarioInit(), and C4Player::SetWealth().
|
inline |
Definition at line 163 of file C4Game.h.
References DirectJoinAddress, StdStrBuf::getSize(), RecordStream, and ScenarioFilename.
Referenced by C4Application::ParseCommandLine(), and C4Application::PreInit().
bool C4Game::Init | ( | ) |
Definition at line 397 of file C4Game.cpp.
References C4Value::_getPropList(), _MAX_PATH, _MAX_PATH_LEN, C4GameParameters::AllowDebug, C4ConfigGeneral::AlwaysDebug, Application, C4S, C4FullScreen::CloseMenu(), Config, Console, StdStrBuf::Copy(), DebugMode, DirectJoinAddress, DirectJoinFilePrefix, C4Scoreboard::DoDlgShow(), C4Network2::DoLobby(), Extra, C4Network2::FinalInit(), fQuitWithError, FullScreen, C4GameParameters::GameRes, C4Config::General, GetLogPos(), GlobalSoundModifier, GraphicsSystem, C4Scenario::Head, IM_Normal, C4Extra::Init(), InitFullscreenComponents(), C4Console::InitGame(), InitGame(), InitGameFinal(), InitKeyboard(), C4GraphicsSystem::InitLoaderScreen(), InitNetworkFromAddress(), InitNetworkFromReference(), InitNetworkFromReferenceFile(), InitNetworkHost(), InitPlayers(), InitProgress, C4GraphicsSystem::InvalidateBg(), C4Application::isEditor, C4Network2::isEnabled(), C4Network2::isLobbyActive(), IsRunning, LastInitProgress, C4SHead::Loader, LoadResStr(), Log(), LogFatal(), Network, C4SHead::NetworkGame, OpenScenario(), Parameters, C4ConfigGeneral::Participants, pGUI, pJoinReference, PlayerFilenames, C4GraphicsSystem::pLoaderScreen, pNetworkStatistics, C4GameResList::RetrieveFiles(), C4Network2::RetrieveScenario(), C4SHead::SaveGame, ScenarioFile, ScenarioFilename, SCopy(), Scoreboard, SEqual2(), C4GUI::Screen::SetExclusive(), SetGlobalSoundModifier(), SetInitProgress(), StartTime, StartupLogPos, SyncClearance(), Synchronize(), TempScenarioFile, C4Startup::Unload(), and C4GameLobby::UserAbort.
Referenced by C4Application::GameTick().
|
protected |
Definition at line 3516 of file C4Game.cpp.
References C4Scenario::Animals, C4Id2Def(), C4S, C4SAnimals::EarthNest, C4SAnimals::FreeLife, C4IDList::GetID(), PlaceAnimal(), and PlaceInEarth().
|
protected |
Definition at line 3183 of file C4Game.cpp.
References C4S, Clients, Control, C4GameParameters::doStreaming(), FixRandom(), C4ClientList::getLocal(), C4Scenario::Head, C4GameControl::InitLocal(), C4GameControl::InitNetwork(), C4GameControl::InitReplay(), C4Network2::isEnabled(), C4Network2::isHost(), C4GameParameters::isLeague(), LoadResStr(), Log(), LogFatal(), Network, C4SHead::NetworkGame, Parameters, PlayerFilenames, RandomSeed, C4SHead::RandomSeed, Record, C4SHead::Replay, ScenarioFile, and C4GameControl::StartRecord().
|
protected |
Definition at line 120 of file C4Game.cpp.
References C4DefList::AppendAndIncludeSkeletons(), Application, C4DefList::BuildTable(), C4D_Load_RX, C4DefList::CheckEngineVersion(), C4DefList::CheckRequireDef(), Config, Definitions, C4GameParameters::GameRes, C4Config::General, C4GameRes::getFile(), C4GameResList::iterRes(), C4ConfigGeneral::LanguageEx, C4DefList::Load(), C4DefList::LoadFailure, LoadResStr(), Log(), LogF(), LogFatal(), NRT_Definitions, Parameters, ScenarioFile, and C4Application::SoundSystem.
|
protected |
Definition at line 4160 of file C4Game.cpp.
References C4S, CreateObject(), C4Scenario::Environment, C4IDList::GetID(), and C4SEnvironment::Objects.
void C4Game::InitFullscreenComponents | ( | bool | is_running | ) |
Definition at line 962 of file C4Game.cpp.
References C4UpperBoardHeight, FullScreen, C4GUI::GetScreenHgt(), C4GUI::GetScreenWdt(), GraphicsResource, GraphicsSystem, C4UpperBoard::Init(), C4GraphicsResource::IsInitialized(), C4GraphicsSystem::MessageBoard, C4Window::pSurface, C4ViewportList::RecalculateViewports(), C4Facet::Set(), C4GraphicsSystem::UpperBoard, and Viewports.
Referenced by Init(), and OnResolutionChanged().
|
protected |
Definition at line 2599 of file C4Game.cpp.
References Application, C4ConfigDeveloper::AutoFileReload, Config, DebugHost, DebugPassword, DebugPort, C4Config::Developer, StdStrBuf::getData(), IM_Normal, C4AulDebug::InitDebug(), C4Application::isEditor, C4GameParameters::isLeague(), Log(), Parameters, and pFileMonitor.
Referenced by Init(), and LoadScenarioSection().
|
protected |
Definition at line 2917 of file C4Game.cpp.
References C4GameObjects::AssignInfo(), C4GameObjects::AssignLightRange(), C4Player::AtClient, C4S, C4GameScriptHost::Call(), Console, C4ViewportList::CreateViewport(), C4PlayerList::First, fScriptCreatedObjects, FullScreen, GameScript, C4PlayerList::GetByIndex(), C4PlayerList::GetCount(), HaltCount, C4Scenario::Head, IM_Normal, IM_ReInit, C4Network2::isEnabled(), C4Network2::isHost(), Network, C4ObjectList::ObjectCount(), Objects, pFileMonitor, C4ScriptGuiWindowPropertyName::player, Players, PSF_Initialize, PSF_InitializeAmbience, C4PlayerList::Remove(), C4SHead::SaveGame, C4ConsoleGUI::UpdateHaltCtrls(), C4GameObjects::ValidateOwners(), C4FullScreen::ViewportCheck(), and Viewports.
Referenced by Init(), and LoadScenarioSection().
|
protected |
Definition at line 4188 of file C4Game.cpp.
References CreateObject(), C4IDList::GetID(), C4GameParameters::Goals, and Parameters.
|
protected |
Definition at line 3481 of file C4Game.cpp.
References C4S, C4SVal::Evaluate(), C4Landscape::GetHeight(), C4Landscape::GetWidth(), C4SLandscape::InEarth, C4SLandscape::InEarthLevel, Landscape, C4Scenario::Landscape, ListExpandValids(), PlaceInEarth(), and Random().
bool C4Game::InitKeyboard | ( | ) |
Definition at line 3625 of file C4Game.cpp.
References C4FullScreen::ActivateMenuMain(), ControllerKeys::Any(), Application, ControllerKeys::Cancel(), C4ToolsDlg::ChangeGrade(), C4KeyboardInput::Clear(), COM_MenuClose, COM_MenuDown, COM_MenuEnter, COM_MenuLeft, COM_MenuRight, COM_MenuUp, Config, Console, Control, C4Config::Controls, C4EditCursor::Delete(), ControllerKeys::Down(), C4Console::EditCursor, C4ViewportList::FreeScroll(), FullScreen, Game, C4ConfigControls::GamepadGuiControl, GraphicsSystem, KEY_Default, C4GameControl::KeyAdjustControlRate(), KeyboardInput, KEYS_Alt, KEYS_Control, KEYS_Shift, KEYSCOPE_Console, KEYSCOPE_FilmView, KEYSCOPE_FreeView, KEYSCOPE_Fullscreen, KEYSCOPE_FullSMenu, KEYSCOPE_Generic, KEYSCOPE_Gui, C4MessageInput::KeyStartTypeIn(), C4Scoreboard::KeyUserShow(), ControllerKeys::Left(), C4KeyboardInput::LoadCustomConfig(), C4FullScreen::MenuKeyControl(), MessageInput, C4Application::MusicSystem, Network, ControllerKeys::Ok(), C4ToolsDlg::PopMaterial(), C4ToolsDlg::PopTextures(), C4KeyboardInput::RegisterKey(), ControllerKeys::Right(), C4GraphicsSystem::SaveScreenshotKey(), Scoreboard, C4FullScreen::ShowAbortDlg(), SlowDown(), SpeedUp(), C4Network2::ToggleAllowJoin(), ToggleChart(), ToggleChat(), C4Network2::ToggleClientListDlg(), ToggleDebugMode(), C4ToolsDlg::ToggleIFT(), C4EditCursor::ToggleMode(), C4MusicSystem::ToggleOnOff(), C4Console::TogglePause(), TogglePause(), C4GraphicsSystem::ToggleShow8BitSurface(), C4GraphicsSystem::ToggleShowAction(), C4GraphicsSystem::ToggleShowHelp(), C4GraphicsSystem::ToggleShowNetStatus(), C4GraphicsSystem::ToggleShowVertices(), C4ToolsDlg::ToggleTool(), C4Console::ToolsDlg, ControllerKeys::Up(), C4ViewportList::ViewportNextPlayer(), Viewports, C4ViewportList::ViewportZoomIn(), and C4ViewportList::ViewportZoomOut().
Referenced by Init(), and PreInit().
|
protected |
Definition at line 987 of file C4Game.cpp.
References C4CFN_Material, C4CFN_MaterialFiles, C4CFN_TexMap, C4S, C4MaterialMap::Clear(), C4TextureMap::Clear(), C4MaterialMap::CrossMapMaterials(), C4Group::FindEntry(), Game, C4GameParameters::GameRes, C4GameRes::getFile(), C4TextureMap::Init(), C4GameResList::iterRes(), C4Scenario::Landscape, C4MaterialMap::Load(), C4MaterialMap::LoadEnumeration(), C4TextureMap::LoadFlags(), C4TextureMap::LoadMap(), LoadResStr(), C4TextureMap::LoadTextures(), LogF(), LogFatal(), C4SLandscape::Material, MaterialMap, NRT_Material, C4Reloc::Open(), C4Group::OpenAsChild(), Parameters, C4Group::PreCacheEntries(), Reloc, ScenarioFile, TextureMap, and C4MaterialMap::UpdateScriptPointers().
|
protected |
Definition at line 3889 of file C4Game.cpp.
References Application, C4GUI::MessageDialog::btnAbort, C4GUI::MessageDialog::dsMedium, FormatString(), StdStrBuf::getData(), C4HTTPClient::GetError(), C4Network2RefClient::GetReferences(), C4GUI::Ico_NetWait, C4HTTPClient::Init(), InitNetworkFromReference(), C4GUI::Dialog::IsAborted(), C4HTTPClient::isBusy(), C4Application::isEditor, C4HTTPClient::isSuccess(), LoadResStr(), Log(), LogFatal(), pGUI, C4Network2RefClient::QueryReferences(), StdScheduler::ScheduleProcs(), C4HTTPClient::SetServer(), and C4GUI::Dialog::Show().
Referenced by Init().
|
protected |
Definition at line 3978 of file C4Game.cpp.
References C4ClientIDHost, C4GameParameters::Clients, Clients, Control, FormatString(), C4ClientList::getClientByID(), StdStrBuf::getData(), C4ClientList::getLocal(), C4Client::getName(), C4Network2Reference::getTitle(), C4Network2Players::Init(), C4ClientList::Init(), C4Network2::InitClient(), C4GameControl::InitNetwork(), C4Network2::IR_Success, LoadResStr(), LogF(), LogFatal(), Network, C4Network2Reference::Parameters, C4Network2::Players, and ScenarioTitle.
Referenced by Init(), InitNetworkFromAddress(), and InitNetworkFromReferenceFile().
|
protected |
Definition at line 3957 of file C4Game.cpp.
References EraseFile(), InitNetworkFromReference(), StdStrBuf::LoadFromFile(), and mkNamingAdapt().
Referenced by Init().
|
protected |
Definition at line 4012 of file C4Game.cpp.
References C4Network2::AllowJoin(), C4S, Clients, Control, C4Network2::DoLobby(), fLobby, C4ClientList::getLocal(), C4Scenario::Head, C4Network2Players::Init(), C4ClientList::Init(), C4Network2::InitHost(), C4GameControl::InitNetwork(), LoadResStr(), LogFatal(), Network, NetworkActive, C4SHead::NetworkGame, C4Network2::Players, C4SHead::Replay, and C4Network2::Start().
Referenced by Init().
bool C4Game::InitPlayerControlSettings | ( | ) |
Definition at line 3725 of file C4Game.cpp.
References Application, C4CFN_PlayerControls, C4PlayerControlAssignmentSets::Clear(), C4PlayerControlFile::GetAssignmentSets(), C4PlayerControlFile::GetControlDefs(), InitPlayerControlUserSettings(), C4PlayerControlFile::Load(), LogFatal(), MainSysLangStringTable, C4PlayerControlAssignmentSets::MergeFrom(), C4PlayerControlAssignmentSet::MM_Normal, PlayerControlDefaultAssignmentSets, PlayerControlDefs, C4PlayerControlAssignmentSets::ResolveRefs(), and C4Application::SystemGroup.
Referenced by PreInit().
bool C4Game::InitPlayerControlUserSettings | ( | ) |
Definition at line 3748 of file C4Game.cpp.
References C4PlayerControlAssignmentSets::Clear(), Config, C4Config::Controls, C4PlayerControlAssignmentSets::MergeFrom(), C4PlayerControlAssignmentSet::MM_ConfigOverload, C4PlayerControlAssignmentSet::MM_Inherit, PlayerControlDefaultAssignmentSets, PlayerControlDefs, PlayerControlUserAssignmentSets, C4PlayerControlAssignmentSets::ResolveRefs(), and C4ConfigControls::UserSets.
Referenced by InitPlayerControlSettings().
|
protected |
Definition at line 3073 of file C4Game.cpp.
References C4Window::Active, Application, C4CFN_SavePlayerInfos, C4S, C4PlayerInfoList::Clear(), Console, Control, fLobby, FormatString(), Game, C4PlayerInfoList::GetActivePlayerCount(), C4PlayerInfoList::GetActiveScriptPlayerCount(), StdStrBuf::getData(), C4PlayerInfoList::GetJoinIssuedPlayerCount(), HaltCount, C4Scenario::Head, C4Application::isEditor, C4Network2::isEnabled(), C4Network2::isHost(), C4PlayerInfoList::Load(), LoadResStr(), C4PlayerInfoList::LocalJoinUnjoinedPlayersInQueue(), LogFatal(), C4GameParameters::MaxPlayers, C4Console::Message(), Network, C4SHead::NetworkRuntimeJoin, C4GameControl::NoInput(), Parameters, PlayerInfos, C4PlayerInfoList::RecreatePlayerFiles(), C4PlayerInfoList::RecreatePlayers(), RestorePlayerInfos, C4PlayerInfoList::RestoreSavegameInfos(), ScenarioFile, and ScenarioLangStringTable.
Referenced by Init().
|
protected |
Definition at line 4174 of file C4Game.cpp.
References CreateObject(), C4IDList::GetID(), Parameters, and C4GameParameters::Rules.
|
protected |
Definition at line 2988 of file C4Game.cpp.
References _MAX_FNAME_LEN, Application, C4CFN_Names, C4CFN_ScriptFiles, Config, C4Group::FindNextEntry(), Game, C4Config::General, StdStrBuf::getData(), C4Group::GetFullName(), C4ExtraScriptHost::GetPropList(), InitCoreFunctionMap(), C4MapScriptHost::InitFunctionMap(), InitGameFunctionMap(), InitObjectFunctionMap(), C4Group::IsPacked(), C4ConfigGeneral::LanguageEx, C4ScriptHost::Load(), C4ComponentHost::Load(), LoadResStr(), LogFatal(), MainSysLangStringTable, MapScript, Names, C4Application::OpenSystemGroup(), pFileMonitor, pScenarioObjectsScript, C4ScriptHost::Reg2List(), C4AulScriptEngine::RegisterGlobalConstant(), C4Group::ResetSearch(), ScriptEngine, C4Value::SetPropList(), and C4Application::SystemGroup.
|
protected |
Definition at line 4146 of file C4Game.cpp.
References C4S, Definitions, C4Scenario::Game, C4IDList::GetID(), C4IDList::GetIDCount(), C4DefList::ID2Def(), C4SGame::Realism, C4Def::Value, and C4SRealism::ValueOverloads.
|
protected |
Definition at line 3497 of file C4Game.cpp.
References C4Id2Def(), C4S, C4SVal::Evaluate(), C4Landscape::GetHeight(), C4Landscape::GetWidth(), Landscape, C4Scenario::Landscape, ListExpandValids(), PlaceVegetation(), Random(), C4SLandscape::Vegetation, and C4SLandscape::VegLevel.
bool C4Game::IsPaused | ( | ) |
Definition at line 1235 of file C4Game.cpp.
References HaltCount, C4Network2::isEnabled(), C4Network2::isRunning(), and Network.
Referenced by C4MusicSystem::Execute(), Pause(), TogglePause(), and Unpause().
C4Player * C4Game::JoinPlayer | ( | const char * | filename, |
int32_t | at_client, | ||
const char * | at_client_name, | ||
C4PlayerInfo * | info | ||
) |
Definition at line 3758 of file C4Game.cpp.
References Console, C4ViewportList::CreateViewport(), FullScreen, StdStrBuf::getData(), C4PlayerList::Join(), C4ScriptGuiWindowPropertyName::player, PlayerNames, Players, SIsModule(), C4Console::UpdateMenus(), C4FullScreen::ViewportCheck(), and Viewports.
|
protected |
Definition at line 3035 of file C4Game.cpp.
References DebugPort, DebugWait, Definitions, C4AulScriptEngine::errCnt, C4AulDebug::GetDebugger(), C4AulScriptEngine::lineCnt, C4AulScriptEngine::Link(), LogF(), MaterialMap, ScriptEngine, C4MaterialMap::UpdateScriptPointers(), and C4AulScriptEngine::warnCnt.
bool C4Game::LoadAdditionalSystemGroup | ( | class C4Group & | parent_group | ) |
Definition at line 3577 of file C4Game.cpp.
References _MAX_FNAME_LEN, C4CFN_PlayerControls, C4CFN_ScriptFiles, C4CFN_ScriptStringTbl, C4CFN_System, C4Group::Close(), Config, C4LangStringTable::DelRef(), C4Group::FindEntry(), C4Group::FindNextEntry(), Game, C4Config::General, C4PlayerControlFile::GetAssignmentSets(), C4PlayerControlFile::GetControlDefs(), StdStrBuf::getData(), C4Group::GetFullName(), C4Group::IsPacked(), C4ConfigGeneral::LanguageEx, C4PlayerControlFile::Load(), C4ScriptHost::Load(), C4Language::LoadComponentHost(), LoadResStr(), Log(), C4PlayerControlAssignmentSets::MergeFrom(), C4PlayerControlDefs::MergeFrom(), C4PlayerControlAssignmentSet::MM_LowPrio, C4Group::OpenAsChild(), pFileMonitor, PlayerControlDefaultAssignmentSets, PlayerControlDefs, C4ScriptHost::Reg2List(), C4Group::ResetSearch(), C4PlayerControlAssignmentSets::ResolveRefs(), and ScriptEngine.
Referenced by C4DefList::Load().
|
protected |
Definition at line 3539 of file C4Game.cpp.
References _MAX_FNAME, _MAX_FNAME_LEN, C4CFN_Info, C4CFN_Names, C4CFN_ScenarioSections, C4MaxName, DebugLog(), C4Group::EntryCount(), C4Group::FindNextEntry(), FormatString(), Info, C4ComponentHost::Load(), LoadResStr(), LogFatal(), Names, RemoveExtension(), C4Group::ResetSearch(), ScenarioFile, C4ScenarioSection::ScenarioLoad(), SCharPos(), and SCopy().
bool C4Game::LoadScenarioSection | ( | const char * | section_name, |
DWORD | flags | ||
) |
Definition at line 4304 of file C4Game.cpp.
References C4CFN_Sky, C4FxCall_RemoveClear, C4MaxName, C4S, C4S_KEEP_EFFECTS, C4S_REINIT_SCENARIO, C4S_SAVE_LANDSCAPE, C4S_SAVE_OBJECTS, C4ScenSect_Main, C4TransferZones::Clear(), C4Effect::ClearAll(), C4ParticleSystem::ClearAllParticles(), ClearPointers(), C4Group::Close(), C4MassMoverSet::Copy(), CurrentScenarioSection, DebugLog(), DebugLogF(), DeleteObjects(), C4ViewportList::DisableFoW(), C4ViewportList::EnableFoW(), C4ScenarioSection::EnsureTempStore(), C4Group::FindEntry(), FixRandom(), C4ScenarioSection::fModified, Game, GameScript, C4PlayerList::GetCount(), StdStrBuf::getData(), C4ScenarioSection::GetGroupfile(), GRBroadcast(), IM_ReInit, IM_Section, InitGame(), InitGameFinal(), InitialPlayersJoined, C4Group::IsOpen(), Landscape, C4Scenario::Landscape, C4Scenario::Load(), MassMover, C4ScenarioSection::name, Objects, Particles, pCurrentScenarioSection, C4AulScriptEngine::pGlobalEffects, Players, C4ScenarioSection::pNext, C4ScenarioSection::pObjectScripts, C4GameScriptHost::pScenarioEffects, pScenarioObjectsScript, pScenarioSections, PSF_InitializePlayers, PXS, Random(), RandomSeed, C4ViewportList::RecalculateViewports(), C4MassMoverSet::Save(), C4PXSSystem::Save(), C4Landscape::Save(), C4Scenario::Save(), SaveData(), SCopy(), ScriptEngine, SEqualNoCase(), C4Scenario::SetExactLandscape(), C4SLandscape::SkyDef, TransferZones, C4PropListNumbered::UnshelveNumberedPropLists(), and Viewports.
|
protected |
Definition at line 1246 of file C4Game.cpp.
References C4GameObjects::Add(), AddDbgRec(), C4PropList::Call(), Config, C4ConfigGeneral::DebugRec, C4Object::DoCon(), C4Config::General, C4PropListNumbered::GetEnumerationIndex(), C4PropList::GetName(), C4RCCreateObj::id, C4Object::Init(), Objects, C4RCCreateObj::oei, C4RCCreateObj::ownr, PSF_Construction, RCT_CrObj, C4PropList::Status, C4RCCreateObj::x, and C4RCCreateObj::y.
Referenced by CreateInfoObject(), CreateObject(), and CreateObjectConstruction().
int32_t C4Game::ObjectCount | ( | C4ID | id | ) |
Definition at line 1609 of file C4Game.cpp.
References C4Id2Def(), C4Def::Count, C4ID::None, and Objects.
|
protected |
Definition at line 1636 of file C4Game.cpp.
References Objects, and C4GameObjects::Remove().
Referenced by ExecObjects().
void C4Game::OnKeyboardLayoutChanged | ( | ) |
Definition at line 4237 of file C4Game.cpp.
References PlayerControlDefaultAssignmentSets, PlayerControlDefs, PlayerControlUserAssignmentSets, and C4PlayerControlAssignmentSets::ResolveRefs().
Referenced by C4Application::OnKeyboardLayoutChanged().
void C4Game::OnPlayerJoinFinished | ( | ) |
Definition at line 3791 of file C4Game.cpp.
References C4PT_User, C4PlayerList::GetCount(), C4PlayerInfoList::GetJoinPendingPlayerCount(), GRBroadcast(), C4PlayerList::HasPlayerInTeamSelection(), InitialPlayersJoined, PlayerInfos, Players, and PSF_InitializePlayers.
Referenced by C4Player::ScenarioAndTeamInit().
void C4Game::OnResolutionChanged | ( | unsigned int | res_x, |
unsigned int | res_y | ||
) |
Definition at line 4223 of file C4Game.cpp.
References C4Window::Active, FullScreen, GraphicsResource, InitFullscreenComponents(), IsRunning, pGUI, C4ViewportList::RecalculateViewports(), C4GraphicsResource::ReloadResolutionDependantFiles(), C4GUI::Element::SetBounds(), and Viewports.
Referenced by C4Application::OnResolutionChanged().
|
protected |
Definition at line 177 of file C4Game.cpp.
References _MAX_PATH, C4SDefinitions::AllowUserChange, Application, C4CFN_ScriptStringTbl, C4CFN_Title, C4GSCnt_Scenario, C4GSPrio_Scenario, C4S, C4SHead::C4XVer, CompareVersion(), Config, DefinitionFilenames, C4Scenario::Definitions, FormatString(), Game, GameText, C4Config::General, C4ComponentHost::GetData(), StdStrBuf::getData(), GetFilename(), C4Group::GetFullName(), C4ComponentHost::GetLanguageString(), StdStrBuf::getLength(), C4SDefinitions::GetModules(), StdStrBuf::getSize(), GroupSet, C4Scenario::Head, C4Application::isEditor, C4Network2::isEnabled(), C4Network2::isHost(), C4Group::IsPacked(), ItemIdentical(), C4ConfigGeneral::LanguageEx, C4Scenario::Load(), C4GameParameters::Load(), C4ScenarioParameterDefs::Load(), C4Language::LoadComponentHost(), LoadResStr(), Log(), LogF(), LogFatal(), C4ConfigGeneral::MissionAccess, C4SHead::MissionAccess, Network, C4Reloc::Open(), C4Group::OpenAsChild(), C4SHead::Origin, Parameters, pFileMonitor, pParentGroup, RecordStream, C4GroupSet::RegisterGroup(), C4GroupSet::RegisterParentFolders(), Reloc, ScenarioFile, ScenarioFilename, ScenarioLangStringTable, ScenarioParameterDefs, ScenarioTitle, SCopy(), SetInitProgress(), SIsModule(), StartupScenarioParameters, C4Playback::StreamToRecord(), Title, and C4SHead::Title.
Referenced by Init().
bool C4Game::Pause | ( | ) |
Definition at line 1171 of file C4Game.cpp.
References Console, Evaluated, Game, HaltCount, C4Network2::isEnabled(), C4Network2::isHost(), C4GameParameters::isLeague(), IsPaused(), Network, Parameters, C4Network2::Pause(), C4ConsoleGUI::UpdateHaltCtrls(), C4Network2::Vote(), and VT_Pause.
Referenced by C4Console::DoHalt(), C4Player::Execute(), C4Player::InitControl(), C4GameOverDlg::OnShown(), and TogglePause().
C4Object * C4Game::PlaceAnimal | ( | C4PropList * | def | ) |
Definition at line 3446 of file C4Game.cpp.
References C4D_Place_Air, C4D_Place_Liquid, C4D_Place_Surface, CreateObject(), FindLiquid(), FindSolidGround(), FindSurfaceLiquid(), GBackSemiSolid(), C4PropList::GetDef(), C4Landscape::GetHeight(), C4PropList::GetPropertyInt(), C4Landscape::GetWidth(), C4Rect::Hgt, Landscape, NO_OWNER, P_Placement, Random(), C4Def::Shape, and C4Rect::Wdt.
Referenced by FnPlaceAnimal(), and InitAnimals().
|
protected |
Definition at line 3271 of file C4Game.cpp.
References CreateObject(), GBackMat(), C4Landscape::GetHeight(), C4Landscape::GetWidth(), Landscape, MEarth, NO_OWNER, and Random().
Referenced by InitAnimals(), and InitInEarth().
C4Object * C4Game::PlaceVegetation | ( | C4PropList * | def, |
int32_t | x, | ||
int32_t | y, | ||
int32_t | wdt, | ||
int32_t | hgt, | ||
int32_t | growth, | ||
C4PropList * | shape_proplist, | ||
C4PropList * | out_pos_proplist | ||
) |
Definition at line 3323 of file C4Game.cpp.
References C4D_Place_Surface, FullCon, C4PropList::GetDef(), C4PropList::GetPropertyInt(), and P_Placement.
Referenced by FnPlaceVegetation(), and InitVegetation().
bool C4Game::PreInit | ( | ) |
Definition at line 333 of file C4Game.cpp.
References Application, Config, Console, DefaultRanks, Extra, FixRandom(), fPreinited, FullScreen, Game, GameGo, C4Window::GetSize(), C4Config::GetSubkeyPath(), GraphicsSystem, C4Rect::Hgt, C4GraphicsSystem::Init(), C4MessageInput::Init(), C4RankSystem::Init(), C4GUI::Screen::Init(), C4Extra::InitGroup(), InitKeyboard(), InitPlayerControlSettings(), C4Application::isEditor, LoadResStr(), LogFatal(), MessageInput, pGUI, RandomSeed, SetInitProgress(), UpdateLanguage(), and C4Rect::Wdt.
Referenced by C4Application::PreInit().
bool C4Game::QuickSave | ( | const char * | filename, |
const char * | title, | ||
bool | force_save = false |
||
) |
Definition at line 2386 of file C4Game.cpp.
References _MAX_PATH, _MAX_PATH_LEN, AppendBackslash(), C4Config::AtUserDataPath(), C4CFN_Savegames, CanQuickSave(), Config, C4ConfigGeneral::CreateSaveFolder(), DirectorySeparator, C4GraphicsSystem::FlashMessage(), StdStrBuf::Format(), C4Config::General, StdStrBuf::getData(), GraphicsSystem, ItemIdentical(), LoadResStr(), Log(), C4GraphicsSystem::MessageBoard, C4GameSave::Save(), ScenarioFilename, SCharCount(), SCopy(), SCopyUntil(), SLen(), and StartSoundEffect().
Referenced by C4MainMenu::MenuCommand().
|
protected |
Definition at line 3060 of file C4Game.cpp.
References Definitions, MaterialMap, Objects, C4AulScriptEngine::ReLink(), ScriptEngine, C4MaterialMap::UpdateScriptPointers(), and C4GameObjects::UpdateScriptPointers().
Referenced by CreateSectionFromTempFile(), ReloadDef(), and ReloadFile().
bool C4Game::ReloadDef | ( | C4ID | id | ) |
Definition at line 2488 of file C4Game.cpp.
References C4AulProfiler::Abort(), Application, C4D_Load_RX, C4GraphicsResource::CloseFiles(), Config, Definitions, C4Def::Filename, C4Config::General, GetFilename(), GraphicsResource, C4Def::id, C4DefList::ID2Def(), C4Network2::isEnabled(), C4ConfigGeneral::LanguageEx, Log(), LogF(), Messages, Network, Objects, C4SolidMask::PutSolidMasks(), C4GraphicsResource::RegisterGlobalGraphics(), C4GraphicsResource::RegisterMainGroups(), ReLinkScriptEngine(), C4DefList::Reload(), C4DefList::Remove(), C4SolidMask::RemoveSolidMasks(), C4Application::SoundSystem, Synchronize(), C4ID::ToString(), and C4GameMessageList::UpdateDef().
Referenced by PropertyDlgProc(), and ReloadFile().
bool C4Game::ReloadFile | ( | const char * | filepath | ) |
Definition at line 2465 of file C4Game.cpp.
References C4Config::AtRelativePath(), Config, Definitions, C4Config::General, C4DefList::GetByPath(), C4Def::id, C4Network2::isEnabled(), C4ConfigGeneral::LanguageEx, Network, ReLinkScriptEngine(), ReloadDef(), C4AulScriptEngine::ReloadScript(), and ScriptEngine.
Referenced by ConsoleDlgProc().
bool C4Game::ReloadParticle | ( | const char * | name | ) |
Definition at line 2565 of file C4Game.cpp.
References C4ParticleSystem::ClearAllParticles(), C4ParticleSystem::definitions, C4ParticleDef::Filename, StdStrBuf::getData(), C4ParticleSystemDefinitionList::GetDef(), GetFilename(), C4Network2::isEnabled(), LogF(), C4ParticleDefCore::Name, Network, Particles, and C4ParticleDef::Reload().
bool C4Game::SaveData | ( | C4Group & | group, |
bool | save_section, | ||
bool | save_exact, | ||
bool | save_sync, | ||
C4ValueNumbers * | numbers | ||
) |
Definition at line 2180 of file C4Game.cpp.
References C4Group::Add(), C4CFN_Game, C4CFN_ScenarioObjectsScript, C4V_Nil, C4PropList::Call(), C4AulScriptEngine::CloseUserFile(), StdStrBuf::Copy(), C4AulScriptEngine::CreateUserFile(), C4Group::Delete(), C4AulUserFile::GetFileLength(), StdStrBuf::getLength(), C4AulScriptEngine::GetPropList(), C4Value::GetType(), C4AulScriptEngine::GetUserFile(), C4AulUserFile::GrabFileContents(), IM_Normal, IM_Section, LogF(), mkParAdapt(), PSF_SaveScenarioObjects, and ScriptEngine.
Referenced by LoadScenarioSection().
bool C4Game::SaveGameTitle | ( | C4Group & | hGroup | ) |
Definition at line 2237 of file C4Game.cpp.
References C4AbstractApp::Active, C4Group::Add(), Application, C4Config::AtTempPath(), C4Draw::Blit(), C4CFN_ScenarioTitle, C4CFN_TempTitle, Config, C4Group::FindEntry(), C4GraphicsResource::FontRegular, FormatString(), FrameCounter, FullScreen, StdStrBuf::getData(), CStdFont::GetLineHeight(), C4GUI::GetScreenHgt(), C4GUI::GetScreenWdt(), GraphicsResource, C4Application::isEditor, C4Group::LoadEntry(), C4Group::Move(), pDraw, C4Window::pSurface, C4Surface::SavePNG(), and ScenarioFile.
Referenced by C4GameSaveSavegame::SaveComponents().
void C4Game::SetDefaultGamma | ( | ) |
Definition at line 4775 of file C4Game.cpp.
References C4MaxGammaUserRamps, Config, C4ConfigGraphics::Gamma, C4Config::Graphics, pDraw, C4Draw::ResetGamma(), and C4Draw::SetGamma().
void C4Game::SetGlobalSoundModifier | ( | C4PropList * | modifier_props | ) |
Definition at line 4788 of file C4Game.cpp.
References Application, C4SoundModifierList::Get(), GlobalSoundModifier, C4SoundSystem::Modifiers, NO_OWNER, C4Value::Set0(), C4SoundModifierList::SetGlobalModifier(), C4Value::SetPropList(), and C4Application::SoundSystem.
Referenced by Clear(), and Init().
void C4Game::SetInitProgress | ( | float | to_progress | ) |
Definition at line 4202 of file C4Game.cpp.
References Application, C4AbstractApp::FlushMessages(), GraphicsSystem, InitProgress, IsRunning, LastInitProgress, and C4GraphicsSystem::MessageBoard.
Referenced by C4Startup::EnsureLoaded(), Init(), C4GraphicsResource::Init(), C4StartupGraphics::Init(), C4Landscape::Init(), C4GraphicsResource::InitFonts(), C4StartupGraphics::InitFonts(), C4DefList::Load(), OpenScenario(), C4Application::PreInit(), and PreInit().
void C4Game::SetScenarioFilename | ( | const char * | scenario_filename | ) |
Definition at line 660 of file C4Game.cpp.
References _MAX_PATH, GetFilename(), ScenarioFilename, SCopy(), and SEqualNoCase().
Referenced by C4Application::GameTick(), C4Application::OnCommand(), C4Application::OpenGame(), and C4Application::ParseCommandLine().
void C4Game::ShowGameOverDlg | ( | ) |
Definition at line 3831 of file C4Game.cpp.
References Application, GameOverDlgShown, C4Application::isEditor, pGUI, C4Application::QuitGame(), C4GUI::Dialog::SetDelOnClose(), and C4GUI::Dialog::Show().
Referenced by Execute().
bool C4Game::SlowDown | ( | ) |
Definition at line 4740 of file C4Game.cpp.
References C4GraphicsSystem::FlashMessage(), FormatString(), FrameSkip, FullSpeed, GraphicsSystem, and LoadResStr().
Referenced by InitKeyboard().
bool C4Game::SpeedUp | ( | ) |
Definition at line 4730 of file C4Game.cpp.
References C4GraphicsSystem::FlashMessage(), FormatString(), FrameSkip, FullSpeed, GraphicsSystem, and LoadResStr().
Referenced by InitKeyboard().
void C4Game::SyncClearance | ( | ) |
Definition at line 3854 of file C4Game.cpp.
References Objects, and C4GameObjects::SyncClearance().
Referenced by C4Network2::FinalInit(), and Init().
void C4Game::Synchronize | ( | bool | save_player_files | ) |
Definition at line 3859 of file C4Game.cpp.
References Control, Definitions, FixRandom(), FrameCounter, C4Network2::isEnabled(), C4GameControl::isReplay(), Landscape, LogSilentF(), MassMover, Network, Objects, C4Network2::OnGameSynchronized(), C4GameControl::OnGameSynchronizing(), Players, RandomSeed, C4Landscape::Synchronize(), C4MassMoverSet::Synchronize(), C4TransferZones::Synchronize(), C4DefList::Synchronize(), C4GameObjects::Synchronize(), C4PlayerList::SynchronizeLocalFiles(), and TransferZones.
Referenced by C4Network2::FinalInit(), Init(), and ReloadDef().
|
protected |
Definition at line 2017 of file C4Game.cpp.
References Application, cFPS, Control, DoSkipFrame, FrameCounter, FrameSkip, FullSpeed, GameGo, iTick10, iTick1000, iTick2, iTick255, iTick3, iTick35, iTick5, C4Application::NextTick(), pNetworkStatistics, C4GameControl::Ticks(), and TimeGo.
Referenced by Execute().
bool C4Game::ToggleChart | ( | ) |
Definition at line 4535 of file C4Game.cpp.
References C4ChartDialog::Toggle().
Referenced by InitKeyboard(), and C4MessageInput::ProcessCommand().
bool C4Game::ToggleChat | ( | ) |
Definition at line 4751 of file C4Game.cpp.
References C4ChatDlg::ToggleChat().
Referenced by InitKeyboard().
|
protected |
Definition at line 4501 of file C4Game.cpp.
References C4GameParameters::AllowDebug, C4GraphicsSystem::DeactivateDebugOutput(), DebugMode, C4GraphicsSystem::FlashMessage(), C4GraphicsSystem::FlashMessageOnOff(), GraphicsSystem, LoadResStr(), and Parameters.
Referenced by InitKeyboard().
bool C4Game::TogglePause | ( | ) |
Definition at line 1153 of file C4Game.cpp.
References IsPaused(), C4GameOverDlg::IsShown(), Pause(), and Unpause().
Referenced by InitKeyboard(), and C4Console::TogglePause().
bool C4Game::Unpause | ( | ) |
Definition at line 1203 of file C4Game.cpp.
References Console, Evaluated, Game, HaltCount, C4Network2::isEnabled(), C4Network2::isHost(), C4GameParameters::isLeague(), IsPaused(), Network, Parameters, C4Network2::Start(), C4ConsoleGUI::UpdateHaltCtrls(), C4Network2::Vote(), and VT_Pause.
Referenced by C4Console::DoPlay(), C4GameOverDlg::OnClosed(), and TogglePause().
void C4Game::UpdateLanguage | ( | ) |
Definition at line 3719 of file C4Game.cpp.
References Application, C4CFN_ScriptStringTbl, Config, C4Config::General, C4ConfigGeneral::LanguageEx, C4Language::LoadComponentHost(), MainSysLangStringTable, and C4Application::SystemGroup.
Referenced by PreInit().
C4Scenario C4Game::C4S |
Definition at line 74 of file C4Game.h.
Referenced by C4MainMenu::ActivateNewPlayer(), C4GameOverDlg::C4GameOverDlg(), C4Landscape::P::ChunkOZoom(), Clear(), C4PlayerInfo::CompileFunc(), C4RoundResults::CompileFunc(), C4Landscape::P::CreateMap(), C4Landscape::P::CreateMapS2(), Default(), DoKeyboardInput(), C4Viewport::Draw(), C4LandscapeRenderGL::Draw(), C4Landscape::DrawChunks(), C4Landscape::DrawMap(), C4Viewport::DrawOverlay(), C4Object::DrawSelectMark(), C4Player::Evaluate(), C4Viewport::Execute(), C4Weather::Execute(), C4Player::Execute(), C4ViewportList::FreeScroll(), C4Player::GainScenarioAchievement(), C4Language::GetPackGroups(), C4RoundResults::Init(), Init(), C4Network2Players::Init(), C4Sky::Init(), C4Weather::Init(), C4Landscape::Init(), C4Player::Init(), InitAnimals(), C4Landscape::P::InitBorderPix(), InitControl(), InitEnvironment(), C4GraphicsResource::InitFonts(), InitGameFinal(), InitInEarth(), C4Network2::InitLeague(), C4PlayerInfoList::InitLocal(), InitMaterialTexture(), InitNetworkHost(), InitPlayers(), InitValueOverloads(), InitVegetation(), C4Landscape::InsertDeadMaterial(), C4Landscape::InsertMaterial(), C4Network2Players::JoinLocalPlayer(), C4PlayerInfo::LoadFromLocalFile(), C4PlayerInfo::LoadResource(), LoadScenarioSection(), C4MainMenu::MenuCommand(), C4Viewport::NextPlayer(), C4GameLobby::Countdown::OnSec1Timer(), OpenScenario(), C4Player::PlaceReadyBase(), C4Player::PlaceReadyCrew(), C4Player::PlaceReadyMaterial(), C4Player::PlaceReadyVehic(), C4Landscape::PostInitMap(), C4MessageInput::ProcessInput(), C4PlayerInfoList::RecreatePlayerFiles(), C4PlayerInfoList::RecreatePlayers(), C4PlayerInfoList::RestoreSavegameInfos(), C4PlayerList::Save(), C4Landscape::ScenarioInit(), C4Player::ScenarioInit(), C4ToolsDlg::SetLandscapeMode(), C4GameLobby::MainDlg::Start(), C4FullScreen::ViewportCheck(), and C4ViewportList::ViewportNextPlayer().
int32_t C4Game::cFPS |
Definition at line 111 of file C4Game.h.
Referenced by Default(), C4GameSec1Timer::OnSec1Timer(), and Ticks().
C4ClientList& C4Game::Clients |
Definition at line 69 of file C4Game.h.
Referenced by C4MainMenu::ActivateMain(), C4GameControl::ChangeToLocal(), ConsoleDlgProc(), C4GameControlNetwork::DecideControlDelivery(), C4Network2::EndVote(), C4GameControlNetwork::ExecQueuedSyncCtrl(), C4PlayerList::FileInUse(), C4Network2Players::GetClientChatColor(), C4ControlVote::getDesc(), C4Network2Players::GetLocalPlayerInfoPacket(), C4Network2::HandleJoinData(), C4Network2Players::HandlePlayerInfo(), C4Network2::HostConnect(), InitControl(), C4Network2::InitHost(), C4Network2::InitNetIO(), InitNetworkFromReference(), InitNetworkHost(), C4Network2Players::JoinLocalPlayer(), C4MainMenu::MenuCommand(), C4GameLobby::MainDlg::OnClientAddPlayer(), C4Network2::OnClientDisconnect(), C4Network2::OnGameSynchronized(), C4GameLobby::MainDlg::OnMessage(), C4GameLobby::MainDlg::OnReadyCheck(), C4Network2Players::OnStatusGoReached(), C4Network2::OpenVoteDialog(), C4ControlJoinPlayer::PreExecute(), C4GameControl::Prepare(), C4MessageInput::ProcessCommand(), C4PlayerInfoList::RecreatePlayers(), C4Network2::RequestActivate(), C4Network2::RetrieveScenario(), C4PlayerInfoList::SetAsRestoreInfos(), C4GameControlNetwork::SetRunning(), C4Network2ClientListBox::Update(), C4Console::UpdateNetMenu(), C4Network2ClientDlg::UpdateText(), and C4Network2::Vote().
char C4Game::CurrentScenarioSection[C4MaxName+1] |
Definition at line 101 of file C4Game.h.
Referenced by CompileFunc(), Default(), and LoadScenarioSection().
StdStrBuf C4Game::DebugHost |
Definition at line 149 of file C4Game.h.
Referenced by Default(), InitGame(), and C4Application::ParseCommandLine().
bool C4Game::DebugMode |
Definition at line 145 of file C4Game.h.
Referenced by DebugLog(), C4Viewport::Execute(), Init(), C4MessageInput::ProcessCommand(), ToggleDebugMode(), C4GraphicsSystem::ToggleShow8BitSurface(), C4GraphicsSystem::ToggleShowAction(), and C4GraphicsSystem::ToggleShowVertices().
StdStrBuf C4Game::DebugPassword |
Definition at line 149 of file C4Game.h.
Referenced by Default(), InitGame(), and C4Application::ParseCommandLine().
uint16_t C4Game::DebugPort |
Definition at line 149 of file C4Game.h.
Referenced by Default(), InitGame(), LinkScriptEngine(), and C4Application::ParseCommandLine().
int C4Game::DebugWait |
Definition at line 149 of file C4Game.h.
Referenced by Default(), LinkScriptEngine(), and C4Application::ParseCommandLine().
char C4Game::DefinitionFilenames[20 *_MAX_PATH_LEN] |
Definition at line 105 of file C4Game.h.
Referenced by Clear(), Default(), C4StartupNetDlg::DoOK(), C4Extra::Init(), C4StartupMainDlg::OnNetJoin(), OpenScenario(), C4Application::ParseCommandLine(), C4StartupScenSelDlg::StartScenario(), and C4GameSave::WriteDescDefinitions().
char C4Game::DirectJoinAddress[_MAX_PATH_LEN] |
Definition at line 106 of file C4Game.h.
Referenced by Clear(), Default(), C4StartupNetDlg::DoOK(), HasScenario(), Init(), C4StartupMainDlg::OnNetJoin(), and C4Application::ParseCommandLine().
|
staticconstexpr |
Definition at line 296 of file C4Game.h.
Referenced by C4StartupNetDlg::DoOK(), and Init().
char C4Game::DirectJoinTempFilename[_MAX_PATH_LEN] |
bool C4Game::DoSkipFrame |
Definition at line 138 of file C4Game.h.
Referenced by Default(), C4ApplicationGameTimer::Execute(), C4GameControl::Ticks(), and Ticks().
bool C4Game::Evaluated |
bool C4Game::EvaluateOnAbort |
bool C4Game::fLobby |
Definition at line 119 of file C4Game.h.
Referenced by Default(), C4Console::FileNew(), C4Console::FileOpen(), C4Application::GameTick(), InitNetworkHost(), InitPlayers(), C4StartupMainDlg::OnNetJoin(), C4Application::ParseCommandLine(), C4TeamList::RecheckPlayerInfoTeams(), and C4StartupScenSelDlg::StartScenario().
bool C4Game::fObserve |
Definition at line 121 of file C4Game.h.
Referenced by Default(), C4StartupNetDlg::DoOK(), C4Application::GameTick(), C4StartupMainDlg::OnNetJoin(), C4Application::ParseCommandLine(), and C4StartupScenSelDlg::StartScenario().
bool C4Game::fPreinited {false} |
int32_t C4Game::FPS |
Definition at line 111 of file C4Game.h.
Referenced by Default(), C4UpperBoard::Draw(), C4Network2Stats::ExecuteSecond(), C4Network2::HandleActivateReq(), C4GameSec1Timer::OnSec1Timer(), and C4Console::UpdateStatusBars().
bool C4Game::fQuitWithError {false} |
Definition at line 143 of file C4Game.h.
Referenced by C4Startup::DoStartup(), C4Application::GameTick(), and Init().
int32_t C4Game::FrameCounter |
Definition at line 129 of file C4Game.h.
Referenced by C4Viewport::CalculateZoom(), C4Playback::Check(), CompileFunc(), C4ValueProviderLinear::CompileFunc(), C4GameControl::CtrlTickReached(), C4GameControl::DbgRec(), C4Network2::DeactivateInactiveClients(), Default(), C4GameControl::DoSyncCheck(), C4LandscapeRenderGL::Draw(), C4GameControl::ExecControl(), C4GameControl::ExecControlPacket(), C4GameControl::Execute(), C4PlayerControl::Execute(), Execute(), C4GameControlNetwork::Execute(), C4ValueProviderLinear::Execute(), C4ViewportList::FreeScroll(), C4GameControl::getCtrlTick(), C4GameControl::getNextControlTick(), C4Network2::HandleActivateReq(), C4Viewport::Init(), C4GameControl::Prepare(), C4SolidMask::Put(), C4GameControl::RemoveOldSyncChecks(), C4Network2::RequestActivate(), SaveGameTitle(), C4ControlSyncCheck::Set(), C4Client::SetActivated(), C4Player::SetHostility(), C4PlayerInfo::SetJoined(), C4PlayerInfo::SetRemoved(), C4Record::Start(), C4GameControl::StartRecord(), Synchronize(), C4GameControl::Ticks(), Ticks(), C4Network2ClientList::UpdateClientActivity(), and C4Console::UpdateStatusBars().
int32_t C4Game::FrameSkip |
Definition at line 138 of file C4Game.h.
Referenced by Default(), C4MessageInput::ProcessCommand(), SlowDown(), SpeedUp(), and Ticks().
bool C4Game::fReferenceDefinitionOverride |
bool C4Game::fResortAnyObject |
Definition at line 139 of file C4Game.h.
Referenced by CompileFunc(), C4Object::CompileFunc(), Default(), DeleteObjects(), ExecObjects(), and C4Object::Resort().
bool C4Game::fScriptCreatedObjects |
Definition at line 118 of file C4Game.h.
Referenced by Default(), InitGameFinal(), and C4Console::SaveScenario().
bool C4Game::FullSpeed |
Definition at line 137 of file C4Game.h.
Referenced by Default(), C4MessageInput::ProcessCommand(), SlowDown(), SpeedUp(), and Ticks().
bool C4Game::GameGo |
Definition at line 136 of file C4Game.h.
Referenced by C4GameControlNetwork::CheckCompleteCtrl(), Execute(), C4ApplicationGameTimer::Execute(), PreInit(), C4GameControl::Ticks(), and Ticks().
bool C4Game::GameOver |
Definition at line 114 of file C4Game.h.
Referenced by Abort(), Clear(), Default(), DoGameOver(), C4Player::Evaluate(), Execute(), GameOverCheck(), and C4Network2::LeagueNotifyDisconnect().
bool C4Game::GameOverDlgShown |
Definition at line 117 of file C4Game.h.
Referenced by Default(), Execute(), and ShowGameOverDlg().
C4ComponentHost C4Game::GameText |
Definition at line 79 of file C4Game.h.
Referenced by Clear(), CompileRuntimeData(), C4Player::LoadRuntimeData(), and OpenScenario().
C4Value& C4Game::GlobalSoundModifier |
Definition at line 99 of file C4Game.h.
Referenced by CompileFunc(), Init(), and SetGlobalSoundModifier().
C4GroupSet C4Game::GroupSet |
Definition at line 87 of file C4Game.h.
Referenced by Clear(), CloseScenario(), Default(), C4LoaderScreen::Init(), C4MusicSystem::InitForScenario(), C4GameResList::Load(), C4Extra::LoadDef(), C4GameResList::LoadFoldersWithLocalDefs(), OpenScenario(), and C4GraphicsResource::RegisterMainGroups().
int32_t C4Game::HaltCount |
Definition at line 112 of file C4Game.h.
Referenced by C4GameControl::ChangeToLocal(), C4Network2::CheckStatusReached(), C4AulDebug::DebugStep(), Default(), C4EditCursor::Execute(), Execute(), InitGameFinal(), InitPlayers(), IsPaused(), C4EditCursor::LeftButtonDown(), C4AbortGameDialog::OnClosed(), C4AbortGameDialog::OnShown(), C4Network2::OnStatusAck(), C4Network2::OnStatusReached(), Pause(), and Unpause().
int32_t C4Game::iLobbyTimeout |
Definition at line 120 of file C4Game.h.
Referenced by Default(), C4Network2::DoLobby(), and C4Application::ParseCommandLine().
C4ComponentHost C4Game::Info |
Definition at line 76 of file C4Game.h.
Referenced by Clear(), and LoadScenarioComponents().
bool C4Game::InitialPlayersJoined |
Definition at line 113 of file C4Game.h.
Referenced by CompileFunc(), Default(), LoadScenarioSection(), and OnPlayerJoinFinished().
int32_t C4Game::InitProgress |
Definition at line 134 of file C4Game.h.
Referenced by Default(), C4MessageBoard::Draw(), Init(), and SetInitProgress().
C4Control& C4Game::Input |
Definition at line 82 of file C4Game.h.
Referenced by C4MouseControl::ButtonUpDragScript(), C4PlayerList::CtrlRemove(), C4ScriptGuiWindowAction::Execute(), C4MouseControl::LeftUpDragNone(), C4PlayerInfoList::LocalJoinUnjoinedPlayersInQueue(), C4GameSaveSavegame::OnSaving(), C4ObjectMenu::OnUserClose(), C4ObjectMenu::OnUserEnter(), C4ObjectMenu::OnUserSelectItem(), C4PlayerControl::PrepareInput(), C4MouseControl::RightUpDragNone(), and C4MouseControl::UpdateCursorTarget().
bool C4Game::IsRunning |
Definition at line 140 of file C4Game.h.
Referenced by C4Network2::AllowJoin(), C4TeamList::CanLocalSeeTeam(), C4Network2::CheckStatusReached(), Clear(), C4FullScreen::Close(), Default(), DoKeyboardInput(), C4PlayerInfoList::DoLocalNonNetworkPlayerInfoUpdate(), C4GUI::Dialog::DoModal(), Execute(), C4GraphicsSystem::Execute(), C4MusicSystem::Execute(), C4Console::FileRecord(), C4Application::FullScreenMode(), C4Application::GameTick(), C4GameParameters::GetGameGoalString(), Init(), C4Network2Players::Init(), C4Network2::LeagueNotifyDisconnect(), C4Network2::OnClientDisconnect(), OnResolutionChanged(), C4GameSaveSavegame::OnSaving(), C4MusicSystem::Play(), C4MessageInput::ProcessCommand(), C4MessageInput::ProcessInput(), SetInitProgress(), and C4MusicSystem::ToggleOnOff().
int32_t C4Game::iTick10 |
Definition at line 130 of file C4Game.h.
Referenced by CompileFunc(), Default(), C4Object::ExecLife(), C4Object::ExecMovement(), C4Weather::Execute(), and Ticks().
int32_t C4Game::iTick1000 |
Definition at line 130 of file C4Game.h.
Referenced by CompileFunc(), Default(), C4Weather::Execute(), and Ticks().
int32_t C4Game::iTick2 |
Definition at line 130 of file C4Game.h.
Referenced by CompileFunc(), Default(), C4Command::MoveTo(), and Ticks().
int32_t C4Game::iTick255 |
Definition at line 130 of file C4Game.h.
Referenced by CompileFunc(), Default(), C4Object::ExecLife(), ExecObjects(), Ticks(), and C4FoWLightSection::Update().
int32_t C4Game::iTick3 |
Definition at line 130 of file C4Game.h.
Referenced by CompileFunc(), C4GameObjects::CrossCheck(), Default(), and Ticks().
int32_t C4Game::iTick35 |
Definition at line 130 of file C4Game.h.
Referenced by CompileFunc(), Default(), C4EditCursor::Execute(), C4Menu::Execute(), C4Landscape::Execute(), C4Weather::Execute(), C4Player::Execute(), C4MusicSystem::Execute(), GameOverCheck(), C4Command::MoveTo(), C4Object::Push(), and Ticks().
int32_t C4Game::iTick5 |
Definition at line 130 of file C4Game.h.
Referenced by CompileFunc(), Default(), C4Object::ExecLife(), C4MouseControl::Execute(), Ticks(), and C4Command::Transfer().
C4KeyboardInput& C4Game::KeyboardInput |
Definition at line 96 of file C4Game.h.
Referenced by Clear(), DoKeyboardInput(), C4PlayerControl::DoMouseInput(), GetKeyboardInputName(), InitKeyboard(), C4FullScreen::ViewportCheck(), and C4KeyBinding::~C4KeyBinding().
int32_t C4Game::LastInitProgress |
Definition at line 134 of file C4Game.h.
Referenced by Default(), Init(), and SetInitProgress().
C4LangStringTable C4Game::MainSysLangStringTable |
Definition at line 80 of file C4Game.h.
Referenced by Clear(), InitPlayerControlSettings(), InitScriptEngine(), and UpdateLanguage().
C4ComponentHost C4Game::Names |
Definition at line 78 of file C4Game.h.
Referenced by Clear(), InitScriptEngine(), LoadScenarioComponents(), and C4ObjectInfoList::New().
bool C4Game::NetworkActive |
Definition at line 123 of file C4Game.h.
Referenced by C4StartupNetDlg::DoOK(), C4Console::FileNew(), C4Console::FileOpen(), C4Application::GameTick(), InitNetworkHost(), C4GameParameters::Load(), C4StartupMainDlg::OnNetJoin(), C4StartupScenSelDlg::OnShown(), C4Application::ParseCommandLine(), C4Application::PreInit(), and C4StartupScenSelDlg::StartScenario().
StdCopyStrBuf C4Game::NextMission |
Definition at line 147 of file C4Game.h.
Referenced by C4GameOverDlg::C4GameOverDlg(), Clear(), and CompileFunc().
StdCopyStrBuf C4Game::NextMissionDesc |
Definition at line 147 of file C4Game.h.
Referenced by C4GameOverDlg::C4GameOverDlg(), Clear(), and CompileFunc().
StdCopyStrBuf C4Game::NextMissionText |
Definition at line 147 of file C4Game.h.
Referenced by C4GameOverDlg::C4GameOverDlg(), Clear(), and CompileFunc().
C4GameParameters& C4Game::Parameters |
Definition at line 67 of file C4Game.h.
Referenced by Abort(), C4MainMenu::ActivateMain(), C4MainMenu::ActivateNewPlayer(), C4PlayerInfoList::AssignPlayerIDs(), C4GameOptionButtons::C4GameOptionButtons(), C4GameOptionsList::C4GameOptionsList(), C4GameOverDlg::C4GameOverDlg(), Clear(), C4Network2::DeinitLeague(), Evaluate(), C4Player::Evaluate(), C4ApplicationGameTimer::Execute(), C4PlayerInfoList::GetFreePlayerSlotCount(), C4Network2::HandleJoinData(), C4GameLobby::MainDlg::HandlePacket(), C4Network2Players::HandlePlayerInfoUpdRequest(), Init(), InitControl(), InitDefs(), InitGame(), InitGoals(), C4Network2::InitHost(), C4Network2::InitLeague(), InitMaterialTexture(), C4GameControl::InitNetwork(), InitPlayers(), C4GameControl::InitReplay(), InitRules(), C4PlayerList::Join(), C4Network2Players::JoinLocalPlayer(), C4Network2::LeagueEnd(), C4Network2::LeagueNotifyDisconnect(), C4Network2::LeaguePlrAuthCheck(), C4Network2::LeagueSignupDisable(), C4Network2::LeagueStart(), C4MainMenu::MenuCommand(), OpenScenario(), Pause(), C4MessageInput::ProcessCommand(), C4Network2::RetrieveScenario(), C4Network2::SendJoinData(), C4Record::Start(), C4Record::StartStreaming(), C4Record::Stop(), C4Network2::StreamOut(), ToggleDebugMode(), Unpause(), and C4GameSaveRecord::WriteDesc().
C4PathFinder C4Game::PathFinder |
Definition at line 84 of file C4Game.h.
Referenced by Clear(), Default(), C4Viewport::Draw(), and C4Command::MoveTo().
C4ScenarioSection * C4Game::pCurrentScenarioSection |
Definition at line 91 of file C4Game.h.
Referenced by CloseScenario(), CreateSectionFromTempFile(), Default(), and LoadScenarioSection().
std::unique_ptr<C4FileMonitor> C4Game::pFileMonitor |
Definition at line 97 of file C4Game.h.
Referenced by Clear(), InitGame(), InitGameFinal(), InitScriptEngine(), LoadAdditionalSystemGroup(), and OpenScenario().
std::unique_ptr<C4Network2Reference> C4Game::pJoinReference |
C4PlayerControlAssignmentSets C4Game::PlayerControlDefaultAssignmentSets |
Definition at line 93 of file C4Game.h.
Referenced by Clear(), InitPlayerControlSettings(), InitPlayerControlUserSettings(), LoadAdditionalSystemGroup(), and OnKeyboardLayoutChanged().
C4PlayerControlDefs C4Game::PlayerControlDefs |
Definition at line 92 of file C4Game.h.
Referenced by Clear(), InitPlayerControlSettings(), InitPlayerControlUserSettings(), LoadAdditionalSystemGroup(), OnKeyboardLayoutChanged(), C4ObjectMenu::OnUserClose(), C4ObjectMenu::OnUserEnter(), and C4ObjectMenu::OnUserSelectItem().
C4PlayerControlAssignmentSets C4Game::PlayerControlUserAssignmentSets |
Definition at line 93 of file C4Game.h.
Referenced by Clear(), C4PlayerControlAssignmentSet::GetPicture(), C4Player::InitControl(), InitPlayerControlUserSettings(), C4StartupPlrPropertiesDlg::OnCtrlChangeLeft(), C4StartupPlrPropertiesDlg::OnCtrlChangeRight(), OnKeyboardLayoutChanged(), and C4StartupPlrPropertiesDlg::UserClose().
char C4Game::PlayerFilenames[20 *_MAX_PATH_LEN] |
Definition at line 104 of file C4Game.h.
Referenced by Clear(), C4Application::ClearCommandLine(), Default(), C4Console::FileOpenWPlrs(), Init(), C4Network2Players::Init(), InitControl(), C4PlayerInfoList::InitLocal(), and C4Application::ParseCommandLine().
C4PlayerInfoList& C4Game::PlayerInfos |
Definition at line 71 of file C4Game.h.
Referenced by C4GameControl::ChangeToLocal(), C4Player::CreateGraphs(), C4Viewport::Execute(), C4Player::FindNewOwner(), C4PlayerInfoList::FindSavegameResumePlayerInfo(), C4Team::GetFirstUnjoinedPlayerID(), C4Player::GetInfo(), C4Team::GetNameWithParticipants(), C4TeamList::GetScriptPlayerName(), C4Player::GetType(), C4Team::HasWon(), C4Network2Players::Init(), C4Console::InitGame(), InitPlayers(), C4Player::IsInvisible(), C4PlayerList::JoinNew(), C4Network2::LeagueNotifyDisconnect(), C4Network2::LeagueUpdateProcessReply(), C4Network2Players::OnClientPart(), OnPlayerJoinFinished(), C4GameLobby::Countdown::OnSec1Timer(), C4Network2::OpenVoteDialog(), C4MessageInput::ProcessCommand(), C4TeamList::ReassignAllTeams(), C4Team::RecheckPlayers(), C4TeamList::RecheckTeams(), C4PlayerList::Remove(), C4GameSaveRecord::SaveComponents(), C4Player::ScenarioInit(), C4TeamList::SetTeamColors(), C4GameLobby::MainDlg::Start(), C4Record::Stop(), and C4GameSave::WriteDescPlayers().
StdStrBuf C4Game::PlayerNames |
Definition at line 81 of file C4Game.h.
Referenced by JoinPlayer().
std::unique_ptr<C4Network2Stats> C4Game::pNetworkStatistics |
Definition at line 95 of file C4Game.h.
Referenced by Clear(), C4Network2Client::ClearGraphs(), C4Player::ClearGraphs(), C4Network2Client::CreateGraphs(), C4Player::CreateGraphs(), Default(), C4GameControl::Execute(), Init(), C4Player::Init(), and Ticks().
bool C4Game::PointersDenumerated |
C4Group* C4Game::pParentGroup |
Definition at line 88 of file C4Game.h.
Referenced by C4MainMenu::ActivateSavegame(), CloseScenario(), Default(), and OpenScenario().
class C4ScenarioObjectsScriptHost* C4Game::pScenarioObjectsScript |
Definition at line 90 of file C4Game.h.
Referenced by Clear(), CreateSectionFromTempFile(), InitScriptEngine(), LoadScenarioSection(), and C4ScenarioSection::ScenarioLoad().
C4ScenarioSection* C4Game::pScenarioSections |
Definition at line 91 of file C4Game.h.
Referenced by C4ScenarioSection::C4ScenarioSection(), CloseScenario(), CreateSectionFromTempFile(), Default(), and LoadScenarioSection().
std::unique_ptr<C4GameSec1Timer> C4Game::pSec1Timer |
size_t C4Game::QuitLogPos {0} |
Definition at line 142 of file C4Game.h.
Referenced by Clear(), and C4Startup::DoStartup().
int32_t C4Game::RandomSeed |
Definition at line 135 of file C4Game.h.
Referenced by C4Sky::Init(), C4Landscape::Init(), InitControl(), C4Network2::LeagueStart(), LoadScenarioSection(), PreInit(), and Synchronize().
bool C4Game::Record |
Definition at line 124 of file C4Game.h.
Referenced by C4GameOptionButtons::C4GameOptionButtons(), C4StartupNetDlg::C4StartupNetDlg(), InitControl(), C4GameOptionButtons::OnBtnLeague(), C4StartupNetDlg::OnBtnRecord(), C4GameOptionButtons::OnBtnRecord(), C4Application::ParseCommandLine(), and C4Application::PreInit().
StdStrBuf C4Game::RecordDumpFile |
Definition at line 125 of file C4Game.h.
Referenced by Clear(), C4Playback::Open(), and C4Application::ParseCommandLine().
StdStrBuf C4Game::RecordStream |
Definition at line 126 of file C4Game.h.
Referenced by Clear(), HasScenario(), OpenScenario(), and C4Application::ParseCommandLine().
C4PlayerInfoList& C4Game::RestorePlayerInfos |
Definition at line 72 of file C4Game.h.
Referenced by C4Network2Players::Init(), C4PlayerInfoList::InitLocal(), InitPlayers(), C4PlayerInfoList::ResolvePlayerAttributeConflicts(), C4GameLobby::MainDlg::Start(), and C4PlayerInfoList::UpdatePlayerAttributes().
C4RoundResults& C4Game::RoundResults |
Definition at line 73 of file C4Game.h.
Referenced by C4GameOverDlg::C4GameOverDlg(), Clear(), Evaluate(), C4Player::Evaluate(), C4RoundResults::EvaluateLeague(), C4Network2Players::HandlePacket(), C4Network2::LeagueEnd(), C4MainMenu::MenuCommand(), C4Network2::OnClientDisconnect(), and C4PlayerList::Remove().
C4Group C4Game::ScenarioFile |
Definition at line 86 of file C4Game.h.
Referenced by C4ControlReInitScenario::C4ControlReInitScenario(), CloseScenario(), C4ScenarioSection::EnsureTempStore(), C4Console::FileSaveAs(), C4ScenarioSection::GetGroupfile(), Init(), C4Sky::Init(), C4Player::Init(), InitControl(), InitDefs(), C4MusicSystem::InitForScenario(), InitMaterialTexture(), InitPlayers(), C4GameResList::Load(), LoadScenarioComponents(), OpenScenario(), C4MessageInput::ProcessCommand(), C4PlayerInfoList::RecreatePlayerFiles(), SaveGameTitle(), C4Console::SaveScenario(), and C4ScenarioSection::ScenarioLoad().
char C4Game::ScenarioFilename[_MAX_PATH_LEN] |
Definition at line 102 of file C4Game.h.
Referenced by C4MainMenu::ActivateSavegame(), Clear(), C4Network2::CreateDynamic(), Default(), C4StartupNetDlg::DoOK(), C4Player::GainScenarioAchievement(), C4Language::GetPackGroups(), HasScenario(), Init(), C4Console::InitGame(), C4StartupMainDlg::OnNetJoin(), OpenScenario(), C4Application::ParseCommandLine(), C4MessageInput::ProcessCommand(), QuickSave(), C4Console::SaveScenario(), and SetScenarioFilename().
C4LangStringTable C4Game::ScenarioLangStringTable |
Definition at line 80 of file C4Game.h.
Referenced by Clear(), InitPlayers(), OpenScenario(), and C4ScenarioSection::ScenarioLoad().
class C4ScenarioParameterDefs& C4Game::ScenarioParameterDefs |
Definition at line 75 of file C4Game.h.
Referenced by C4GameOptionsList::C4GameOptionsList(), Clear(), C4GameParameters::EnforceLeagueRules(), C4Network2::HandleJoinData(), OpenScenario(), and C4Network2::SendJoinData().
StdCopyStrBuf C4Game::ScenarioTitle |
Definition at line 103 of file C4Game.h.
Referenced by C4MainMenu::ActivateSavegame(), C4GameSaveRecord::AdjustCore(), Default(), C4UpperBoard::Draw(), C4LoaderScreen::Draw(), C4Player::Evaluate(), InitNetworkFromReference(), OpenScenario(), and C4GameSave::SaveDesc().
C4Scoreboard C4Game::Scoreboard |
Definition at line 94 of file C4Game.h.
Referenced by Clear(), CompileFunc(), Init(), InitKeyboard(), and C4GameOverDlg::OnShown().
std::unique_ptr<C4ScriptGuiWindow> C4Game::ScriptGuiRoot |
Definition at line 234 of file C4Game.h.
Referenced by Clear(), ClearPointers(), CompileFunc(), Default(), C4Viewport::Draw(), C4ScriptGuiWindowAction::Init(), C4MouseControl::Move(), and C4ViewportList::RecalculateViewports().
int32_t C4Game::StartTime |
size_t C4Game::StartupLogPos {0} |
Definition at line 142 of file C4Game.h.
Referenced by C4Startup::DoStartup(), and Init().
int32_t C4Game::StartupPlayerCount |
Definition at line 109 of file C4Game.h.
Referenced by CompileFunc(), C4Landscape::P::CreateMap(), C4Landscape::P::CreateMapS2(), Default(), C4Landscape::DrawMap(), and C4Player::ScenarioInit().
class C4ScenarioParameters& C4Game::StartupScenarioParameters |
Definition at line 68 of file C4Game.h.
Referenced by Clear(), OpenScenario(), C4Application::ParseCommandLine(), and C4StartupScenSelDlg::StartScenario().
int32_t C4Game::StartupTeamCount |
Definition at line 110 of file C4Game.h.
Referenced by CompileFunc(), and Default().
C4TeamList& C4Game::Teams |
Definition at line 70 of file C4Game.h.
Referenced by C4MainMenu::ActivateMain(), C4PlayerInfoList::AddInfo(), C4Team::AddPlayer(), C4PlayerInfoList::AssignTeams(), C4GameOverDlg::C4GameOverDlg(), C4PlayerInfoList::CreateRestoreInfosForJoinedScriptPlayers(), C4MainMenu::DoRefillInternal(), C4Player::Execute(), C4Player::FindNewOwner(), C4PlayerInfo::GetLobbyColor(), C4Network2Players::HandlePlayerInfo(), C4PlayerInfo::HasTeamWon(), C4Player::Init(), C4PlayerInfoList::InitLocal(), C4GameLobby::MainDlg::MainDlg(), C4MainMenu::MenuCommand(), C4Network2Players::OnClientPart(), C4GameLobby::MainDlg::OnRightTabContext(), C4MessageInput::ProcessInput(), C4PlayerInfoList::RecheckAutoGeneratedTeams(), C4PlayerInfoList::RestoreSavegameInfos(), C4Player::ScenarioAndTeamInit(), C4Player::ScenarioInit(), C4PlayerInfoList::UpdatePlayerAttributes(), and C4GameSave::WriteDescPlayers().
StdStrBuf C4Game::TempScenarioFile |
Definition at line 127 of file C4Game.h.
Referenced by CloseScenario(), Init(), and C4Console::SaveScenario().
int32_t C4Game::Time |
Definition at line 132 of file C4Game.h.
Referenced by CompileFunc(), Default(), C4Player::Evaluate(), C4RoundResults::EvaluateGame(), C4Object::ExecLife(), C4UpperBoard::Execute(), C4UpperBoard::Init(), C4Player::Init(), C4Player::LocalSync(), C4GameSec1Timer::OnSec1Timer(), C4ObjectInfo::Recruit(), C4ObjectInfo::Retire(), C4Console::UpdateStatusBars(), and C4GameSave::WriteDescGameTime().
bool C4Game::TimeGo |
Definition at line 131 of file C4Game.h.
Referenced by Default(), C4GameSec1Timer::OnSec1Timer(), and Ticks().
C4ComponentHost C4Game::Title |
Definition at line 77 of file C4Game.h.
Referenced by Clear(), and OpenScenario().
C4TransferZones C4Game::TransferZones |
Definition at line 85 of file C4Game.h.
Referenced by Clear(), ClearPointers(), Default(), LoadScenarioSection(), C4Object::StatusDeactivate(), Synchronize(), and C4Command::Transfer().