diff options
author | Gregory Montoir | 2004-12-31 00:25:18 +0000 |
---|---|---|
committer | Gregory Montoir | 2004-12-31 00:25:18 +0000 |
commit | a44e8248159fc836f9d534872b0d55741f0c803c (patch) | |
tree | 47df2cacddf071f0ff1c8a761b3038acc0d8c7d1 /queen/credits.h | |
parent | f06348440fd2040cb8bf57849c7e6670db91caf0 (diff) | |
download | scummvm-rg350-a44e8248159fc836f9d534872b0d55741f0c803c.tar.gz scummvm-rg350-a44e8248159fc836f9d534872b0d55741f0c803c.tar.bz2 scummvm-rg350-a44e8248159fc836f9d534872b0d55741f0c803c.zip |
added some comments and re-indented some parts of code
svn-id: r16394
Diffstat (limited to 'queen/credits.h')
-rw-r--r-- | queen/credits.h | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/queen/credits.h b/queen/credits.h index aa40961a15..eba91bb9cd 100644 --- a/queen/credits.h +++ b/queen/credits.h @@ -31,38 +31,55 @@ class QueenEngine; class LineReader; class Credits { - public: Credits(QueenEngine *vm, const char* filename); ~Credits(); + //! update/display credits for current room void update(); + + //! handles room switching void nextRoom(); + //! returns true if the credits are running bool running() const { return _running; } private: - QueenEngine *_vm; - LineReader *_credits; - - struct Line - { - short x,y,color,fontSize; - char *text; + struct Line { + short x, y, color, fontSize; + const char *text; }; - + + //! contains the formatted lines of texts to display Line _list[19]; + //! true if end of credits description hasn't been reached bool _running; + + //! number of elements in _list array int _count; + + //! pause counts for next room int _pause; + + //! current text justification mode int _justify; + + //! current font size (unused ?) int _fontSize; + + //! current text color int _color; + + //! current text position int _zone; + //! contains the credits description + LineReader *_credits; + + QueenEngine *_vm; }; } // End of namespace Queen |