aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/agos.h
diff options
context:
space:
mode:
authorTravis Howell2007-05-26 13:23:06 +0000
committerTravis Howell2007-05-26 13:23:06 +0000
commitd6e0fe13b5ff266c87f2119f9d1c42b70cdea496 (patch)
treed02601bab4086332b3fd767dd3c318f89cd892af /engines/agos/agos.h
parent0bd2a211fd01b08c97867747e786ebc908caa403 (diff)
downloadscummvm-rg350-d6e0fe13b5ff266c87f2119f9d1c42b70cdea496.tar.gz
scummvm-rg350-d6e0fe13b5ff266c87f2119f9d1c42b70cdea496.tar.bz2
scummvm-rg350-d6e0fe13b5ff266c87f2119f9d1c42b70cdea496.zip
Add code for opcodes 177/178 in Elvira 2.
svn-id: r26937
Diffstat (limited to 'engines/agos/agos.h')
-rw-r--r--engines/agos/agos.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/engines/agos/agos.h b/engines/agos/agos.h
index bc2e2e4b16..83e46f9723 100644
--- a/engines/agos/agos.h
+++ b/engines/agos/agos.h
@@ -130,6 +130,14 @@ enum SIMONGameType {
GType_PP = 7
};
+enum EventType {
+ ANIMATE_INT = 1 << 1,
+ ANIMATE_EVENT = 1 << 2,
+ SCROLL_EVENT = 1 << 3,
+ IMAGE_EVENT2 = 1 << 4,
+ IMAGE_EVENT3 = 1 << 5
+};
+
struct AGOSGameDescription;
struct GameSpecificSettings;
@@ -202,13 +210,6 @@ protected:
byte _keyPressed;
- typedef enum {
- FORMAT_NONE,
- FORMAT_MP3,
- FORMAT_WAV,
- FORMAT_VOC
- } SoundFormat;
-
Common::File *_gameFile;
byte *_strippedTxtMem;
@@ -437,6 +438,9 @@ protected:
VgaTimerEntry *_nextVgaTimerToProcess;
+ uint8 _opcode177Var1, _opcode177Var2;
+ uint8 _opcode178Var1, _opcode178Var2;
+
Item *_objectArray[50];
Item *_itemStore[50];
@@ -1086,11 +1090,14 @@ protected:
bool isVgaQueueEmpty();
void haltAnimation();
void restartAnimation();
- void addVgaEvent(uint16 num, const byte *code_ptr, uint16 cur_sprite, uint16 curZoneNum, uint8 type = 0);
+ void addVgaEvent(uint16 num, uint8 type, const byte *code_ptr, uint16 cur_sprite, uint16 curZoneNum);
void deleteVgaEvent(VgaTimerEntry * vte);
void processVgaEvents();
void animateEvent(const byte *code_ptr, uint16 curZoneNum, uint16 cur_sprite);
void scrollEvent();
+ void drawStuff(const byte *src, uint offs);
+ void imageEvent2(VgaTimerEntry * vte, uint dx);
+ void imageEvent3(VgaTimerEntry * vte, uint dx);
VgaSprite *findCurSprite();