#include <C4Scenario.h>
Public Member Functions | |
C4Scenario () | |
void | SetExactLandscape () |
void | Clear () |
void | Default () |
bool | Load (C4Group &hGroup, bool fLoadSection=false, bool suppress_errors=false) |
bool | Save (C4Group &hGroup, bool fSaveSection=false) |
void | CompileFunc (StdCompiler *pComp, bool fSection) |
int32_t | GetMinPlayer () |
Public Attributes | |
C4SHead | Head |
C4SDefinitions | Definitions |
C4SGame | Game |
C4SPlrStart | PlrStart [C4S_MaxPlayer] |
C4SLandscape | Landscape |
C4SAnimals | Animals |
C4SWeather | Weather |
C4SEnvironment | Environment |
Definition at line 227 of file C4Scenario.h.
C4Scenario::C4Scenario | ( | ) |
Definition at line 73 of file C4Scenario.cpp.
References Default().
void C4Scenario::Clear | ( | ) |
Definition at line 410 of file C4Scenario.cpp.
Referenced by C4Game::Clear().
void C4Scenario::CompileFunc | ( | StdCompiler * | pComp, |
bool | fSection | ||
) |
Definition at line 128 of file C4Scenario.cpp.
References Animals, C4S_MaxPlayer, Definitions, Environment, FormatString(), Game, Head, Landscape, mkNamingAdapt(), mkParAdapt(), PlrStart, StdCompiler::Value(), and Weather.
void C4Scenario::Default | ( | ) |
Definition at line 78 of file C4Scenario.cpp.
References Animals, C4S_MaxPlayer, C4SHead::Default(), C4SDefinitions::Default(), C4SRealism::Default(), C4SGame::Default(), C4SLandscape::Default(), C4SWeather::Default(), C4SAnimals::Default(), C4SEnvironment::Default(), Definitions, Environment, Game, Head, Landscape, PlrStart, C4SGame::Realism, and Weather.
Referenced by C4Scenario(), C4Game::Default(), and Load().
int32_t C4Scenario::GetMinPlayer | ( | ) |
Definition at line 141 of file C4Scenario.cpp.
References Head, and C4SHead::MinPlayer.
Referenced by C4GameLobby::Countdown::OnSec1Timer().
bool C4Scenario::Load | ( | C4Group & | hGroup, |
bool | fLoadSection = false , |
||
bool | suppress_errors = false |
||
) |
Definition at line 92 of file C4Scenario.cpp.
References C4CFN_ScenarioCore, Default(), C4Group::LoadEntryString(), and mkParAdapt().
Referenced by C4Game::LoadScenarioSection(), C4Game::OpenScenario(), and C4Playback::StreamToRecord().
bool C4Scenario::Save | ( | C4Group & | hGroup, |
bool | fSaveSection = false |
||
) |
Definition at line 114 of file C4Scenario.cpp.
References C4Group::Add(), C4CFN_ScenarioCore, mkParAdapt(), and StdStrBuf::Take().
Referenced by C4Game::LoadScenarioSection().
void C4Scenario::SetExactLandscape | ( | ) |
Definition at line 415 of file C4Scenario.cpp.
References C4SLandscape::ExactLandscape, and Landscape.
Referenced by C4Game::LoadScenarioSection().
C4SAnimals C4Scenario::Animals |
Definition at line 237 of file C4Scenario.h.
Referenced by CompileFunc(), Default(), and C4Game::InitAnimals().
C4SDefinitions C4Scenario::Definitions |
Definition at line 233 of file C4Scenario.h.
Referenced by CompileFunc(), Default(), C4Game::OpenScenario(), and C4StartupScenSelDlg::StartScenario().
C4SEnvironment C4Scenario::Environment |
Definition at line 239 of file C4Scenario.h.
Referenced by CompileFunc(), Default(), and C4Game::InitEnvironment().
C4SGame C4Scenario::Game |
Definition at line 234 of file C4Scenario.h.
Referenced by C4RoundResults::CompileFunc(), CompileFunc(), C4GameParameters::CompileFunc(), Default(), C4Player::Evaluate(), C4RoundResults::Init(), C4Game::InitValueOverloads(), C4Landscape::InsertDeadMaterial(), C4Landscape::InsertMaterial(), and C4TeamList::Load().
C4SHead C4Scenario::Head |
Definition at line 232 of file C4Scenario.h.
Referenced by C4MainMenu::ActivateNewPlayer(), C4GameSaveSavegame::AdjustCore(), C4GameSaveRecord::AdjustCore(), C4GameSaveNetwork::AdjustCore(), C4GameOverDlg::C4GameOverDlg(), C4PlayerInfo::CompileFunc(), CompileFunc(), C4GameParameters::CompileFunc(), Default(), C4Game::DoKeyboardInput(), C4Viewport::Draw(), C4Viewport::DrawOverlay(), C4Object::DrawSelectMark(), C4GameParameters::EnforceLeagueRules(), C4ViewportList::FreeScroll(), C4Player::GainScenarioAchievement(), GetMinPlayer(), C4Language::GetPackGroups(), C4Game::Init(), C4Network2Players::Init(), C4Player::Init(), C4Game::InitControl(), C4GraphicsResource::InitFonts(), C4Game::InitGameFinal(), C4PlayerInfoList::InitLocal(), C4Game::InitNetworkHost(), C4Game::InitPlayers(), C4ScenarioListLoader::Scenario::IsHidden(), C4Network2Players::JoinLocalPlayer(), C4GameParameters::Load(), C4GameResList::Load(), C4PlayerInfo::LoadFromLocalFile(), C4PlayerInfo::LoadResource(), C4MainMenu::MenuCommand(), C4Viewport::NextPlayer(), C4Game::OpenScenario(), C4MessageInput::ProcessInput(), C4PlayerInfoList::RecreatePlayerFiles(), C4PlayerInfoList::RecreatePlayers(), C4PlayerInfoList::RestoreSavegameInfos(), C4PlayerList::Save(), C4GameLobby::MainDlg::Start(), C4Playback::StreamToRecord(), C4FullScreen::ViewportCheck(), and C4ViewportList::ViewportNextPlayer().
C4SLandscape C4Scenario::Landscape |
Definition at line 236 of file C4Scenario.h.
Referenced by C4Landscape::P::ChunkOZoom(), CompileFunc(), C4Landscape::P::CreateMap(), C4Landscape::P::CreateMapS2(), Default(), C4LandscapeRenderGL::Draw(), C4Landscape::DrawChunks(), C4Landscape::DrawMap(), C4Viewport::Execute(), C4Sky::Init(), C4Landscape::Init(), C4Landscape::P::InitBorderPix(), C4Game::InitInEarth(), C4Game::InitMaterialTexture(), C4Game::InitVegetation(), C4Game::LoadScenarioSection(), C4Landscape::PostInitMap(), C4Landscape::ScenarioInit(), C4Player::ScenarioInit(), SetExactLandscape(), and C4ToolsDlg::SetLandscapeMode().
C4SPlrStart C4Scenario::PlrStart[C4S_MaxPlayer] |
Definition at line 235 of file C4Scenario.h.
Referenced by CompileFunc(), Default(), C4Player::Execute(), C4Player::PlaceReadyBase(), C4Player::PlaceReadyCrew(), C4Player::PlaceReadyMaterial(), C4Player::PlaceReadyVehic(), and C4Player::ScenarioInit().
C4SWeather C4Scenario::Weather |
Definition at line 238 of file C4Scenario.h.
Referenced by CompileFunc(), Default(), C4Weather::Execute(), and C4Weather::Init().