diff options
author | Max Horn | 2003-01-16 00:40:19 +0000 |
---|---|---|
committer | Max Horn | 2003-01-16 00:40:19 +0000 |
commit | 8ad002b3a3f7d45d6056729c94b5fd4acdc24a9f (patch) | |
tree | f79236ce3ab9645e506eb5b37a914f81d200b654 /scumm/scumm.h | |
parent | ec006a4357a7aec841164ed1207f38cd03f540b1 (diff) | |
download | scummvm-rg350-8ad002b3a3f7d45d6056729c94b5fd4acdc24a9f.tar.gz scummvm-rg350-8ad002b3a3f7d45d6056729c94b5fd4acdc24a9f.tar.bz2 scummvm-rg350-8ad002b3a3f7d45d6056729c94b5fd4acdc24a9f.zip |
first blastText version. this is work in progress (note that e.g. text is not clipped, and the extra information is not removed)
svn-id: r6472
Diffstat (limited to 'scumm/scumm.h')
-rw-r--r-- | scumm/scumm.h | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/scumm/scumm.h b/scumm/scumm.h index bbd7dff6c4..2e08a0dbda 100644 --- a/scumm/scumm.h +++ b/scumm/scumm.h @@ -113,7 +113,15 @@ struct NestedScript { uint8 where; uint8 slot; }; - + +struct BlastText { + int16 xpos, ypos; + byte color; + byte charset; + bool center; + byte text[256]; +}; + enum ResTypes { rtFirst = 1, rtRoom = 1, @@ -792,12 +800,20 @@ public: uint _shakeFrame; int _screenStartStrip, _screenEndStrip; int _screenLeft, _screenTop; - int _enqueuePos; - BlastObject _enqueuedObjects[128]; + + int _blastObjectQueuePos; + BlastObject _blastObjectQueue[128]; + + int _blastTextQueuePos; + BlastText _blastTextQueue[8]; // FIXME - how many blast texts can there be at once? + + void enqueueText(byte *text, int x, int y, byte color, byte charset, bool center); + void drawBlastTexts(); + void removeBlastTexts() { _blastTextQueuePos = 0; } void enqueueObject(int objectNumber, int objectX, int objectY, int objectWidth, int objectHeight, int scaleX, int scaleY, int image, int mode); - void clearEnqueue() { _enqueuePos = 0; } + void clearEnqueue() { _blastObjectQueuePos = 0; } void drawBlastObjects(); void drawBlastObject(BlastObject *eo); void removeBlastObjects(); |