Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

sg.h File Reference

Interface for various global functions and variables. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  tuseractions {
  ua_repainthard, ua_repaint, ua_help, ua_mainmenu,
  ua_mntnc_morefog, ua_mntnc_lessfog, ua_mntnc_morewind, ua_mntnc_lesswind,
  ua_mntnc_rotatewind, ua_changeresourceview, ua_benchgamewv, ua_benchgamewov,
  ua_viewterraininfo, ua_unitweightinfo, ua_writemaptopcx, ua_writescreentopcx,
  ua_changepassword, ua_gamepreferences, ua_bi3preferences, ua_exitgame,
  ua_loadgame, ua_savegame, ua_setupalliances, ua_settribute,
  ua_giveunitaway, ua_vehicleinfo, ua_researchinfo, ua_newmessage,
  ua_viewqueuedmessages, ua_viewsentmessages, ua_viewreceivedmessages, ua_viewjournal,
  ua_editjournal, ua_viewaboutmessage, ua_continuenetworkgame, ua_toggleunitshading,
  ua_computerturn, ua_setupnetwork, ua_howtostartpbem, ua_howtocontinuepbem,
  ua_selectgraphicset, ua_UnitSetInfo, ua_GameParameterInfo, ua_GameStatus,
  ua_viewunitweaponrange, ua_viewunitmovementrange, ua_aibench, ua_networksupervisor,
  ua_selectPlayList, ua_soundDialog, ua_reloadDlgTheme, ua_showPlayerSpeed,
  ua_statisticdialog, ua_viewPipeNet, ua_cancelResearch, ua_showResearchStatus,
  ua_exportUnitToFile, ua_viewButtonPanel, ua_viewWindPanel, ua_clearImageCache,
  ua_viewUnitInfoPanel, ua_cargosummary, ua_viewUnitInfoDialog, ua_showsearchdirs,
  ua_viewOverviewMapPanel, ua_weathercast, ua_newGame, ua_testMessages,
  ua_viewMapControlPanel, ua_unitsummary, ua_togglesound, ua_increase_zoom,
  ua_decrease_zoom, ua_editPlayerData, ua_SDLinfo, ua_visibilityInfo,
  ua_locatefile, ua_viewfont, ua_resourceAnalysis, ua_unitproductionanalysis,
  ua_continuerecentnetworkgame, ua_gotoPosition, ua_loadrecentgame, ua_showTechAdapter,
  ua_showUnitEndurance, ua_getMemoryFootprint, ua_viewlayerhelp, ua_showCargoLayer,
  ua_showMiningPower, ua_emailOptions, ua_createReminder
}

Functions

void execuseraction (tuseractions action)
void execUserAction_ev (tuseractions action)
 takes care of event system switching between old and new functions
void hookGuiToMap (GameMap *map)
bool loadGame (bool mostrecent)
void saveGame (bool as)
bool continueAndStartMultiplayerGame (bool mostRecent)
void changePassword ()


Detailed Description

Interface for various global functions and variables.

Definition in file sg.h.


Enumeration Type Documentation

enum tuseractions
 

Enumeration values:
ua_repainthard 
ua_repaint 
ua_help 
ua_mainmenu 
ua_mntnc_morefog 
ua_mntnc_lessfog 
ua_mntnc_morewind 
ua_mntnc_lesswind 
ua_mntnc_rotatewind 
ua_changeresourceview 
ua_benchgamewv 
ua_benchgamewov 
ua_viewterraininfo 
ua_unitweightinfo 
ua_writemaptopcx 
ua_writescreentopcx 
ua_changepassword 
ua_gamepreferences 
ua_bi3preferences 
ua_exitgame 
ua_loadgame 
ua_savegame 
ua_setupalliances 
ua_settribute 
ua_giveunitaway 
ua_vehicleinfo 
ua_researchinfo 
ua_newmessage 
ua_viewqueuedmessages 
ua_viewsentmessages 
ua_viewreceivedmessages 
ua_viewjournal 
ua_editjournal 
ua_viewaboutmessage 
ua_continuenetworkgame 
ua_toggleunitshading 
ua_computerturn 
ua_setupnetwork 
ua_howtostartpbem 
ua_howtocontinuepbem 
ua_selectgraphicset 
ua_UnitSetInfo 
ua_GameParameterInfo 
ua_GameStatus 
ua_viewunitweaponrange 
ua_viewunitmovementrange 
ua_aibench 
ua_networksupervisor 
ua_selectPlayList 
ua_soundDialog 
ua_reloadDlgTheme 
ua_showPlayerSpeed 
ua_statisticdialog 
ua_viewPipeNet 
ua_cancelResearch 
ua_showResearchStatus 
ua_exportUnitToFile 
ua_viewButtonPanel 
ua_viewWindPanel 
ua_clearImageCache 
ua_viewUnitInfoPanel 
ua_cargosummary 
ua_viewUnitInfoDialog 
ua_showsearchdirs 
ua_viewOverviewMapPanel 
ua_weathercast 
ua_newGame 
ua_testMessages 
ua_viewMapControlPanel 
ua_unitsummary 
ua_togglesound 
ua_increase_zoom 
ua_decrease_zoom 
ua_editPlayerData 
ua_SDLinfo 
ua_visibilityInfo 
ua_locatefile 
ua_viewfont 
ua_resourceAnalysis 
ua_unitproductionanalysis 
ua_continuerecentnetworkgame 
ua_gotoPosition 
ua_loadrecentgame 
ua_showTechAdapter 
ua_showUnitEndurance 
ua_getMemoryFootprint 
ua_viewlayerhelp 
ua_showCargoLayer 
ua_showMiningPower 
ua_emailOptions 
ua_createReminder 

Definition at line 29 of file sg.h.


Function Documentation

void changePassword  ) 
 

bool continueAndStartMultiplayerGame bool  mostRecent  ) 
 

Definition at line 919 of file sg.cpp.

References actmap, continuenetworkgame(), displaymap(), and hookGuiToMap().

Referenced by execuseraction2().

void execuseraction tuseractions  action  ) 
 

Definition at line 605 of file sg.cpp.

References Research::activetechnology, actmap, GameMap::actplayer, Player::ai, benchgame(), bi3preferences(), Research::cancel(), cgp_disableUnitTransfer, choice_dlg(), clipboardFileExtension, computeview(), Research::developedTechnologies, displaymap(), displaymessage(), displaymessage2(), tdialogbox::done(), editjournal(), GameMap::getCursor(), GameMap::getField(), GameMap::getgameparameter(), SoundSystem::getInstance(), getnextfilenumname(), PG_Application::GetScreen(), getSelectedField(), giveunitaway(), help(), helpAbout(), infoMessage(), tviewanytext::init(), CGameOptions::Instance(), logtoreplayinfo(), mainScreenWidget, maintainencecheck(), mouseparams, Technology::name, Vehicle::networkid, newmessage(), GameMap::player, Vehicle::prepareForCleanRemove(), releasetimeslice(), repaintDisplay, Player::research, rpl_cancelResearch, rpl_cutFromGame, tviewanytext::run(), BaseAI::run(), savegame(), selectFile(), selectPlayList(), settributepayments(), showGameParameters(), ASC_MainScreenWidget::showMovementRange(), showPlayerTime(), showSDLInfo(), ASC_MainScreenWidget::showWeaponRange(), statisticDialog(), strrr(), tmousesettings::taste, technologyRepository, MainScreenWidget::toggleMapLayer(), ua_aibench, ua_benchgamewov, ua_benchgamewv, ua_bi3preferences, ua_cancelResearch, ua_changeresourceview, ua_computerturn, ua_editjournal, ua_exportUnitToFile, ua_GameParameterInfo, ua_giveunitaway, ua_help, ua_howtocontinuepbem, ua_howtostartpbem, ua_newmessage, ua_repaint, ua_repainthard, ua_SDLinfo, ua_selectPlayList, ua_settribute, ua_setupnetwork, ua_showCargoLayer, ua_showPlayerSpeed, ua_showResearchStatus, ua_statisticdialog, ua_togglesound, ua_toggleunitshading, ua_UnitSetInfo, ua_viewaboutmessage, ua_viewjournal, ua_viewlayerhelp, ua_viewqueuedmessages, ua_viewreceivedmessages, ua_viewsentmessages, ua_viewunitmovementrange, ua_viewunitweaponrange, ua_visibilityInfo, ua_writescreentopcx, GameMap::unsentmessage, viewjournal(), viewmessages(), viewUnitSetinfo(), writepcx(), and tnstream::writing.

Referenced by execUserAction_ev().

void execUserAction_ev tuseractions  action  ) 
 

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().

void hookGuiToMap GameMap map  ) 
 

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().

bool loadGame bool  mostrecent  ) 
 

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.

void saveGame bool  as  ) 
 

Definition at line 296 of file sg.cpp.

References actmap, GameMap::actplayer, GameMap::preferredFileNames, s1, savegame(), GameMap::PreferredFilenames::savegame, savegameextension, and selectFile().

Referenced by execuseraction2().


Generated on Tue Jun 24 02:08:23 2008 for Advanced Strategic Command by  doxygen 1.4.2