aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichieSams2013-09-21 00:09:05 -0500
committerRichieSams2013-09-21 00:09:05 -0500
commit1ced56fee7a90ff79cf97f34f3721f7234f2f9bc (patch)
treebd1303e9750c3100cde4c7d4b42c1f09f7514729
parent8f7fa517d627ad81ca6a07b5a86b6de0774713a1 (diff)
downloadscummvm-rg350-1ced56fee7a90ff79cf97f34f3721f7234f2f9bc.tar.gz
scummvm-rg350-1ced56fee7a90ff79cf97f34f3721f7234f2f9bc.tar.bz2
scummvm-rg350-1ced56fee7a90ff79cf97f34f3721f7234f2f9bc.zip
ZVISION: Add documentation to SaveManager
-rw-r--r--engines/zvision/save_manager.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/engines/zvision/save_manager.h b/engines/zvision/save_manager.h
index 8d0ebc75af..6445f10caf 100644
--- a/engines/zvision/save_manager.h
+++ b/engines/zvision/save_manager.h
@@ -56,8 +56,27 @@ private:
};
public:
+ /**
+ * Called every room change. Saves the state of the room just before
+ * we switched rooms. Uses ZVision::generateAutoSaveFileName() to
+ * create the save file name.
+ */
void autoSave();
+ /**
+ * Copies the data from the last auto-save into a new save file. We
+ * can't use the current state data because the save menu *IS* a room.
+ * The file is named using ZVision::generateSaveFileName(slot)
+ *
+ * @param slot The save slot this save pertains to. Must be [1, 20]
+ * @param saveName The internal name for this save. This is NOT the name of the actual save file.
+ */
void saveGame(uint slot, const Common::String &saveName);
+ /**
+ * Loads the state data from the save file that slot references. Uses
+ * ZVision::generateSaveFileName(slot) to get the save file name.
+ *
+ * @param slot The save slot to load. Must be [1, 20]
+ */
Common::Error loadGame(uint slot);
private: