diff options
Diffstat (limited to 'engines/drascula/drascula.h')
-rw-r--r-- | engines/drascula/drascula.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/engines/drascula/drascula.h b/engines/drascula/drascula.h index d32796acd6..34439a7373 100644 --- a/engines/drascula/drascula.h +++ b/engines/drascula/drascula.h @@ -267,6 +267,22 @@ private: }; +class TextResourceParser { + Common::SeekableReadStream *_stream; + DisposeAfterUse::Flag _dispose; + int _maxLen; + + void getLine(char *buf); + +public: + TextResourceParser(Common::SeekableReadStream *stream, DisposeAfterUse::Flag dispose); + ~TextResourceParser(); + + void parseInt(int &result); + void parseString(char *result); +}; + + #define NUM_SAVES 10 #define NUM_FLAGS 50 #define DIF_MASK 55 @@ -593,10 +609,6 @@ public: void MusicFadeout(); void playFile(const char *fname); - char *getLine(Common::SeekableReadStream *stream, char *buf, int len); - void getIntFromLine(Common::SeekableReadStream *stream, int len, int* result); - void getStringFromLine(Common::SeekableReadStream *stream, int len, char* result); - void grr(); void updateAnim(int y, int destX, int destY, int width, int height, int count, byte* src, int delayVal = 3, bool copyRectangle = false); |