aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/alan2/decode.h
diff options
context:
space:
mode:
authorFilippos Karapetis2018-12-28 13:38:10 +0200
committerFilippos Karapetis2018-12-28 13:41:39 +0200
commit1c055f686e94c1676b8617cc21e0221c0d97dad9 (patch)
tree2eac9d51df292e42c70aaf24f55f3445a5e56b11 /engines/glk/alan2/decode.h
parentaa8bcac2335804a8e8be47ea7fb27b09148ed49c (diff)
downloadscummvm-rg350-1c055f686e94c1676b8617cc21e0221c0d97dad9.tar.gz
scummvm-rg350-1c055f686e94c1676b8617cc21e0221c0d97dad9.tar.bz2
scummvm-rg350-1c055f686e94c1676b8617cc21e0221c0d97dad9.zip
GLK: ALAN2: Move comments to header files
Diffstat (limited to 'engines/glk/alan2/decode.h')
-rw-r--r--engines/glk/alan2/decode.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/engines/glk/alan2/decode.h b/engines/glk/alan2/decode.h
index 1361badfa1..75a35dc945 100644
--- a/engines/glk/alan2/decode.h
+++ b/engines/glk/alan2/decode.h
@@ -31,22 +31,33 @@ namespace Glk {
namespace Alan2 {
// Structure for saved decode info
-typedef struct DecodeInfo {
+struct DecodeInfo {
long fpos;
int buffer;
int bits;
CodeValue value;
CodeValue high;
CodeValue low;
-} DecodeInfo;
+};
class Decode {
public:
Decode(Common::File *txtFile, Aword *freq): _txtFile(txtFile), _freq(freq) {}
void startDecoding();
int decodeChar();
+
+ /**
+ * Save so much about the decoding process, so it is possible to restore
+ * and continue later.
+ */
DecodeInfo *pushDecode();
+
+ /**
+ * Restore enough info about the decoding process, so it is possible to
+ * continue after having decoded something else.
+ */
void popDecode(DecodeInfo *info);
+
int inputBit();
private:
@@ -64,6 +75,6 @@ private:
};
} // End of namespace Alan2
-} // Engine of namespace GLK
+} // End of namespace Glk
#endif