aboutsummaryrefslogtreecommitdiff
path: root/queen/cutaway.h
diff options
context:
space:
mode:
authorDavid Eriksson2003-10-03 12:55:11 +0000
committerDavid Eriksson2003-10-03 12:55:11 +0000
commit4a19ca4e34f3694895a8c9b8acba79e63687bbfb (patch)
treec21e179e7fa5b4edbd09d165f528c55fe3fe57a5 /queen/cutaway.h
parent88de9a21ae44d59e057f6ff85a1c7dcbfbd8b701 (diff)
downloadscummvm-rg350-4a19ca4e34f3694895a8c9b8acba79e63687bbfb.tar.gz
scummvm-rg350-4a19ca4e34f3694895a8c9b8acba79e63687bbfb.tar.bz2
scummvm-rg350-4a19ca4e34f3694895a8c9b8acba79e63687bbfb.zip
Use struct and not array for objectData.
svn-id: r10565
Diffstat (limited to 'queen/cutaway.h')
-rw-r--r--queen/cutaway.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/queen/cutaway.h b/queen/cutaway.h
index 0a15df01e8..87f0b1f99c 100644
--- a/queen/cutaway.h
+++ b/queen/cutaway.h
@@ -69,23 +69,23 @@ class QueenCutaway {
//! Data for a cutaway object
struct CutawayObject {
- int objectNumber; // 0 = JOE, -1 = MESSAGE
- int moveToX;
- int moveToY;
- int bank; // 0 = PBOB, 13 = Joe Bank, else BANK NAMEstr()
- int animList;
- int execute; // 1 Yes, 0 No
- int limitBobX1;
- int limitBobY1;
- int limitBobX2;
- int limitBobY2;
- int specialMove;
- int animType; // 0 - Packet, 1 - Amal, 2 - Unpack
- int fromObject;
- int bobStartX;
- int bobStartY;
- int room;
- int scale;
+ int16 objectNumber; // 0 = JOE, -1 = MESSAGE
+ int16 moveToX;
+ int16 moveToY;
+ int16 bank; // 0 = PBOB, 13 = Joe Bank, else BANK NAMEstr()
+ int16 animList;
+ int16 execute; // 1 Yes, 0 No
+ int16 limitBobX1;
+ int16 limitBobY1;
+ int16 limitBobX2;
+ int16 limitBobY2;
+ int16 specialMove;
+ int16 animType; // 0 - Packet, 1 - Amal, 2 - Unpack
+ int16 fromObject;
+ int16 bobStartX;
+ int16 bobStartY;
+ int16 room;
+ int16 scale;
// Variables derived from the variables above
int song;
@@ -114,8 +114,8 @@ class QueenCutaway {
struct ObjectDataBackup {
int index;
- int16 value0;
- int16 value7;
+ int16 name;
+ int16 image;
};
QueenLogic *_queenLogic;
@@ -230,6 +230,9 @@ class QueenCutaway {
//! Prepare for talk after cutaway
void talk(char *nextFilename);
+ //! Get CutawayAnim data from ptr and return new ptr
+ byte *getCutawayAnim(byte *ptr, int header, CutawayAnim &anim);
+
//! Read a string from ptr and return new ptr
static byte *getString(byte *ptr, char *str, int maxLength);
@@ -239,9 +242,6 @@ class QueenCutaway {
//! Dump a CutawayObject with debug()
static void dumpCutawayObject(int index, CutawayObject &object);
- //! Get CutawayAnim data from ptr and return new ptr
- static byte *getCutawayAnim(byte *ptr, int header, CutawayAnim &anim);
-
//! Dump CutawayAnum data with debug()
static void dumpCutawayAnim(CutawayAnim &anim);