00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef sgH
00027 #define sgH
00028
00029 #include "actions/context.h"
00030 class ASCString;
00031
00032 enum tuseractions { ua_repainthard, ua_repaint, ua_help, ua_mainmenu, ua_mntnc_morefog,
00033 ua_mntnc_lessfog, ua_mntnc_morewind, ua_mntnc_lesswind, ua_mntnc_rotatewind, ua_changeresourceview,
00034 ua_benchgamewv, ua_benchgamewov, ua_viewterraininfo, ua_unitweightinfo, ua_writemaptopcx, ua_writescreentopcx,
00035 ua_changepassword, ua_gamepreferences, ua_bi3preferences,
00036 ua_exitgame, ua_loadgame, ua_savegame, ua_setupalliances, ua_settribute, ua_giveunitaway,
00037 ua_vehicleinfo, ua_researchinfo, ua_newmessage, ua_viewqueuedmessages,
00038 ua_viewsentmessages, ua_viewreceivedmessages, ua_viewjournal, ua_editjournal, ua_viewaboutmessage, ua_continuenetworkgame,
00039 ua_toggleunitshading, ua_computerturn, ua_setupnetwork, ua_howtostartpbem, ua_howtocontinuepbem,
00040 ua_selectgraphicset, ua_UnitSetInfo, ua_GameParameterInfo, ua_GameStatus, ua_viewunitweaponrange, ua_viewunitmovementrange,
00041 ua_aibench, ua_networksupervisor, ua_selectPlayList, ua_soundDialog, ua_reloadDlgTheme, ua_showPlayerSpeed,
00042 ua_statisticdialog, ua_viewPipeNet, ua_cancelResearch, ua_showResearchStatus, ua_exportUnitToFile, ua_viewButtonPanel,
00043 ua_viewWindPanel, ua_clearImageCache, ua_viewUnitInfoPanel, ua_cargosummary, ua_viewUnitInfoDialog, ua_showsearchdirs, ua_viewOverviewMapPanel, ua_weathercast,
00044 ua_newGame, ua_testMessages, ua_viewMapControlPanel, ua_unitsummary, ua_togglesound, ua_increase_zoom, ua_decrease_zoom, ua_editPlayerData,
00045 ua_SDLinfo, ua_visibilityInfo, ua_locatefile, ua_viewfont, ua_resourceAnalysis, ua_unitproductionanalysis, ua_continuerecentnetworkgame, ua_gotoPosition, ua_loadrecentgame,
00046 ua_showTechAdapter, ua_showUnitEndurance, ua_getMemoryFootprint, ua_viewlayerhelp, ua_showCargoLayer, ua_showMiningPower, ua_emailOptions, ua_createReminder, ua_undo, ua_redo,
00047 ua_writeLuaCommands, ua_runLuaCommands, ua_recompteview, ua_unitGuideDialog, ua_turnUnitLeft, ua_turnUnitRight,
00048 ua_chooseTechnology, ua_actionManager, ua_viewReactionfireOverlay, ua_unitAiOptions, ua_showUsedPackages, ua_runOpenTasks, ua_taskManager, ua_viewUnitinfoOverlay, ua_viewUnitexperienceOverlay,
00049 ua_createUnitCostList };
00050
00051 extern void executeUserAction ( tuseractions action );
00052
00053 class GameMap;
00054 extern void hookGuiToMap( GameMap* map );
00055
00056 extern bool loadGame( bool mostrecent );
00057 extern bool loadGameFromFile( const ASCString& filename );
00058 extern void saveGame( bool as );
00059 extern bool continueAndStartMultiplayerGame( bool mostRecent );
00060 extern void changePassword();
00061
00062 extern Context createContext( GameMap* gamemap );
00063
00064
00065 #endif
00066