#include "global.h"
#include <stdio.h>
#include <stdlib.h>
#include <new>
#include <cstdlib>
#include <ctype.h>
#include <algorithm>
#include <memory>
#include <boost/regex.hpp>
#include "paradialog.h"
#include "vehicletype.h"
#include "buildingtype.h"
#include "ai/ai.h"
#include "misc.h"
#include "events.h"
#include "typen.h"
#include "spfst.h"
#include "loaders.h"
#include "dlg_box.h"
#include "controls.h"
#include "dialog.h"
#include "strtmesg.h"
#include "gamedlg.h"
#include "sg.h"
#include "gameoptions.h"
#include "loadimage.h"
#include "astar2.h"
#include "errors.h"
#include "dialogs/pwd_dlg.h"
#include "viewcalculation.h"
#include "replay.h"
#include "graphicset.h"
#include "loadbi3.h"
#include "itemrepository.h"
#include "music.h"
#include "messagedlg.h"
#include "statisticdialog.h"
#include "clipboard.h"
#include "guifunctions.h"
#include "iconrepository.h"
#include "dashboard.h"
#include "gamedialog.h"
#include "unitset.h"
#include "asc-mainscreen.h"
#include "dialogs/unitinfodialog.h"
#include "messaginghub.h"
#include "cannedmessages.h"
#include "memorycheck.cpp"
#include "networkinterface.h"
#include "resourcenet.h"
#include "mapimageexport.h"
#include "loadpcx.h"
#include "gameeventsystem.h"
#include "sdl/sound.h"
#include "soundList.h"
#include "turncontrol.h"
#include "networksupervisor.h"
#include "dialogs/newgame.h"
#include "dialogs/soundsettings.h"
#include "dialogs/alliancesetup.h"
#include "dialogs/unitcounting.h"
#include "dialogs/editgameoptions.h"
#include "dialogs/nextcampaignmap.h"
#include "dialogs/terraininfo.h"
#include "dialogs/editplayerdata.h"
#include "dialogs/locatefile.h"
#include "stdio-errorhandler.h"
#include "widgets/textrenderer.h"
#include "dialogs/productionanalysis.h"
#include "dialogs/fileselector.h"
#include "containerbase-functions.h"
#include "memory-measurement.h"
#include "dialogs/mailoptionseditor.h"
#include "clparser/asc.cpp"
Include dependency graph for sg.cpp:

Go to the source code of this file.
Defines | |
| #define | mmaintainence |
Enumerations | |
| enum | MapTypeLoaded { None, Map, Savegame, Mailfile } |
Functions | |
| tfield * | getSelectedField (void) |
| bool | maintainencecheck (void) |
| void | positionCursor (Player &player) |
| void | viewcomp (Player &player) |
| void | hookGuiToMap (GameMap *map) |
| bool | loadGame (const ASCString &filename) |
| bool | loadGame (bool mostRecent) |
| void | saveGame (bool as) |
| void | loadmap (const ASCString &name, bool campaign) |
| MapTypeLoaded | loadStartupMap (const char *gameToLoad=NULL) |
| void | startnextcampaignmap (int id) |
| void | benchgame (bool withViewCalc) |
| void | showSearchPath () |
| void | changePassword (GameMap *gamemap) |
| void | showSDLInfo () |
| void | helpAbout () |
| void | execuseraction (tuseractions action) |
| bool | continueAndStartMultiplayerGame (bool mostRecent=false) |
| void | ammoCounter (const ContainerBase *c, map< int, int > &amount) |
| void | showCargoSummary (tfield *fld) |
| void | viewFont () |
| void | resourceAnalysis () |
| void | showUnitEndurance () |
| void | showMemoryFootprint () |
| void | viewMiningPower () |
| void | execuseraction2 (tuseractions action) |
| void | execUserAction_ev (tuseractions action) |
| takes care of event system switching between old and new functions | |
| bool | mainloopidle (PG_MessageObject *msgObj) |
| pfont | load_font (const char *name) |
| void | resetActions (GameMap &map) |
| void | loaddata (int resolx, int resoly) |
| void | diplomaticChange (GameMap *gm, int p1, int p2) |
| int | gamethread (void *data) |
| void | tributeTransfer (Player &player) |
| void | deployMapPlayingHooks (GameMap *map) |
| int | main (int argc, char *argv[]) |
Definition in file sg.cpp.
|
|
|
|
|
|
|
||||||||||||
|
Definition at line 931 of file sg.cpp. References cwaffentypennum, ContainerBase::getAmmo(), ContainerBase::getAvailableResource(), ContainerBase::getCargo(), maxint, and weaponAmmo. Referenced by showCargoSummary(). |
|
|
Definition at line 446 of file sg.cpp. References actmap, computeview(), infoMessage(), repaintMap, and ticker. Referenced by execuseraction(). |
|
|
Definition at line 499 of file sg.cpp. References enterpassword(), Player::getHumanPlayerNum(), infoMessage(), and viewtextquery(). Referenced by execuseraction2(). |
|
|
Definition at line 919 of file sg.cpp. References actmap, continuenetworkgame(), displaymap(), and hookGuiToMap(). Referenced by execuseraction2(). |
|
|
Definition at line 1629 of file sg.cpp. References initReplayLogging(), GameMap::sigPlayerTurnBegins, and tributeTransfer(). Referenced by main(). |
|
||||||||||||||||
|
Definition at line 1472 of file sg.cpp. References computeview(), mapChanged, and repaintMap. Referenced by gamethread(). |
|
|
|
|
takes care of event system switching between old and new functions
Definition at line 1357 of file sg.cpp. References execuseraction(), and execuseraction2(). Referenced by ASC_MainScreenWidget::eventKeyDown(), Menu::execAction(), GuiFunctions::UnitInfo::execute(), showMovementRange(), showTerrainInfo(), showUnitInfo(), showUnitWeight(), and showWeaponRange(). |
|
|
|
Definition at line 164 of file sg.cpp. References actmap, GameMap::getCursor(), and GameMap::getField(). Referenced by execuseraction(), and execuseraction2(). |
|
|
Definition at line 589 of file sg.cpp. References getVersionAndCompilation(), readtextmessage(), ASC_PG_Dialog::RunModal(), and PG_Widget::Show(). Referenced by execuseraction(). |
|
|
Definition at line 211 of file sg.cpp. References checkforreplay(), checkJournal(), checkUsedASCVersions(), GameMap::getGuiHooked(), GameMap::guiHooked(), positionCursor(), repaintMap, researchCheck(), GameMap::sigPlayerTurnHasEnded, GameMap::sigPlayerUserInteractionBegins, updateFieldInfo, viewcomp(), viewOwnReplay(), and viewunreadmessages(). Referenced by continueAndStartMultiplayerGame(), loadGame(), loadmap(), loadStartupMap(), StartMultiplayerGame::start(), and startnextcampaignmap(). |
|
|
Definition at line 1385 of file sg.cpp. References loadfont(), and tnstream::reading. |
|
||||||||||||
|
|
Definition at line 262 of file sg.cpp. References actmap, tfindfile::FileInfo::date, displaymap(), GameMap::getCurrentPlayer(), GameMap::getCursor(), getDefaultMapDisplay(), tfindfile::getnextname(), loadGame(), moveparams, tmoveparams::movestatus, tfindfile::FileInfo::name, positionCursor(), s1, savegameextension, selectFile(), and updateFieldInfo. |
|
|
Definition at line 234 of file sg.cpp. References actmap, GameMap::actplayer, tnstream::appending, computeview(), displaymessage2(), hookGuiToMap(), GameMap::levelfinished, tsavegameloaders::loadGameFromFile(), mapLoadingExceptionChecker(), GameMap::replayinfo, and tnstream::writing. Referenced by execuseraction2(), loadGame(), and loadStartupMap(). |
|
||||||||||||
|
Definition at line 325 of file sg.cpp. References actmap, GameMap::Campaign::avail, GameMap::campaign, computeview(), hookGuiToMap(), tmaploaders::loadmap(), and mapLoadingExceptionChecker(). Referenced by loadStartupMap(), and GameMap::ReplayInfo::read(). |
|
|
Definition at line 339 of file sg.cpp. References actmap, computeview(), continuenetworkgame(), displayLogMessage(), displaymessage(), fatalError(), ASCmsgException::getMessage(), tfindfile::getnextname(), hookGuiToMap(), CGameOptions::Instance(), loadGame(), loadmap(), Mailfile, Map, mapextension, None, patimat(), Savegame, savegameextension, tournamentextension, validateemlfile(), validatemapfile(), and validatesavfile(). Referenced by gamethread(). |
|
||||||||||||
|
|
Definition at line 1366 of file sg.cpp. References actmap, checkevents(), checkforvictory(), checktimedevents(), PG_Application::GetApp(), and getDefaultMapDisplay(). Referenced by main(). |
|
|
Definition at line 172 of file sg.cpp. References actmap, GameMap::campaign, Player::exist(), Player::human, GameMap::network, GameMap::player, and Player::stat. Referenced by execuseraction(). |
|
|
Definition at line 201 of file sg.cpp. References getDefaultMapDisplay(), and Player::getParentMap(). Referenced by hookGuiToMap(), and loadGame(). |
|
|
Definition at line 1392 of file sg.cpp. References moveparams, pendingVehicleActions, PendingVehicleActions::reset(), and tmoveparams::reset(). Referenced by gamethread(). |
|
|
Definition at line 1064 of file sg.cpp. References actmap, GameMap::actplayer, GameMap::bi_resource, Player::buildingList, Resources::energy, Resources::fuel, GameMap::isResourceGlobal(), Resources::material, maxint, GameMap::player, Resources::resource(), ASC_PG_Dialog::RunModal(), PG_Widget::Show(), Resources::toString(), MapCoordinate::toString(), ASCString::toString(), MapCoordinate::x, and MapCoordinate::y. Referenced by execuseraction2(). |
|
|
Definition at line 296 of file sg.cpp. References actmap, GameMap::actplayer, GameMap::preferredFileNames, s1, GameMap::PreferredFilenames::savegame, savegame(), savegameextension, and selectFile(). Referenced by execuseraction2(). |
|
|
Definition at line 946 of file sg.cpp. References actmap, ammoCounter(), cwaffentypen, cwaffentypennum, GameMap::getCurrentPlayer(), infoMessage(), Resources::name(), ASC_PG_Dialog::RunModal(), PG_Widget::Show(), showUnitCargoSummary(), ASCString::toString(), tfield::vehicle, and weaponAmmo. Referenced by execuseraction2(). |
|
|
Definition at line 1120 of file sg.cpp. References actmap, MemoryMeasurement::getResult(), MemoryMeasurement::measure(), MemoryMeasurement::measureIcons(), MemoryMeasurement::measureTypes(), ASC_PG_Dialog::RunModal(), and PG_Widget::Show(). Referenced by execuseraction2(). |
|
|
Definition at line 516 of file sg.cpp. References PG_Application::GetScreen(), ASC_PG_Dialog::RunModal(), PG_Widget::Show(), and ASCString::toString(). Referenced by execuseraction(). |
|
|
Definition at line 468 of file sg.cpp. References getConfigFileName(), getSearchPath(), getSearchPathNum(), listContainer(), ASC_PG_Dialog::RunModal(), and PG_Widget::Show(). Referenced by execuseraction2(). |
|
|
Definition at line 1086 of file sg.cpp. References ASCString::format(), UnitHooveringLogic::getEndurance(), MoveMalusType::heavy_aircraft, MoveMalusType::helicopter, MoveMalusType::light_aircraft, MoveMalusType::medium_aircraft, Vehicletype::movemalustyp, ASC_PG_Dialog::RunModal(), PG_Widget::Show(), ASCString::toString(), vehicleComp(), and vehicleTypeRepository. Referenced by execuseraction2(). |
|
|
Definition at line 432 of file sg.cpp. References actmap, computeview(), hookGuiToMap(), nextCampaignMap(), and repaintMap. Referenced by gamethread(). |
|
|
Definition at line 1622 of file sg.cpp. References Player::getPosition(), logtoreplayinfo(), rpl_transferTribute, and transfer_all_outstanding_tribute(). Referenced by deployMapPlayingHooks(). |
|
|
Definition at line 206 of file sg.cpp. References computeview(), and Player::getParentMap(). Referenced by hookGuiToMap(). |
|
|
Definition at line 1056 of file sg.cpp. References ASC_PG_Dialog::RunModal(), and PG_Widget::Show(). Referenced by execuseraction2(). |
|
|
Definition at line 1133 of file sg.cpp. References actmap, GameMap::getCurrentPlayer(), MiningStation::getPlus(), ContainerBaseType::MiningStation, ASC_PG_Dialog::RunModal(), PG_Widget::Show(), and ASCString::toString(). Referenced by execuseraction2(). |
1.4.2