|
Files Affected:
Empire.h
Empire.cpp
Publicized the Empire ctors, as required by other recent code changes.
EmpireManager.h
Publicized InsertEmpire(), RemoveEmpire(), and RemoveAllEmpires(), as required by other recent changes in the code.
TechLevel.h
TechLevel.cpp
Renamed TechLevel Tech, as discussed online.
TechManager.h
TechManager.cpp
Renamed TechLevel Tech, as discussed online, and removed superfluous comments.
ClientUI.h
ClientUI.cpp
Corrected some outdated comments and implemented many of the ZoomTo*() functions.
GalaxySetupWnd.cpp
Changed to use new GG::FileDlg ctor.
InGameOptions.h
InGameOptions.cpp
Implemented saving and loading (multiplayer loading is not available from this window).
IntroScreen.h
IntroScreen.cpp
Added load game button.
MapWnd.h
MapWnd.cp
Added CenterOn*() and Select*() functions to move the view to a certain place in the map, and to open a window on an item of interest, respectively. Also fixed the error in rendering fleet movement lines, and removed debugging text output.
MultiplayerLobbyWnd.cpp
Fixed odd appearance of text in chat window, and changed code to use the new GG::FileDlg ctor.
SitRepPanel.h
SitRepPanel.cpp
Implemented the core SitRep window functionality (zooming to places and items in the SitRep entries). Also, the SitRep can now be toggled open/closed with F2, though this only works when either the main map or the SitRepPanel have the input focus.
SystemIcon.h
SystemIcon.cpp
Added ClickFleetButton() function, which allows a single fleet in a system to be programmatically clicked.
ClientApp.h
ClientApp.cpp
Added TurnOrdersMessage(), which creates a message containing all the current turn's orders, for use both in end-turn messages and during game saves.
ServerApp.h
ServerApp.cpp
HumanClientApp.h
HumanClientApp.cpp
AIClientApp.cpp
Implemented saving and loading.
ClientNetworkCore.h
ClientNetworkCore.cpp
Changed SendSynchronousMessage() to return a Message instead of an int through its second parameter. Also reformatted.
Message.h
Message.cpp
Added save and load messages.
NetworkCore.h
NetworkCore.cpp
Added a static HOST_PLAYER_ID constant, and fixed an error in the way messages are reassembled on receipt.
Universe.h
Universe.cpp
Removed the boost.noncopyable inheritance from Universe, and added the missing ship techs.
VarText.h
VarText.cpp
Re-implemented parsing code using boost.spirit parser library, and altered some other code to make VarText more usable with SitReps.
Purpose of Change:
Numerous minor bugfixes are included in these changes, but mainly this commit includes saving and loading. Single player saves and loads, and multiplayer saves, work just fine. Multiplayer loads will come soon.
Edit: note that these changes require you to update your GG library as well. Linux users just need to do a cvs update, and Windows users need to get the new version from WindowsKit.zip tomorrow morning when I rebuild it. Now I must sleep.
Edit: I just committed the new version of WindowsKit.zip.
|