aboutsummaryrefslogtreecommitdiff
path: root/engines/mutationofjb/game.h
diff options
context:
space:
mode:
authorĽubomír Remák2018-03-09 21:24:02 +0100
committerEugene Sandulenko2018-08-25 23:12:01 +0200
commitd3e281e24cb0ce522dc943b2d2a6bdde0766b62c (patch)
tree8f2c00acdadff4109451f4f0692de8b6b2f0d020 /engines/mutationofjb/game.h
parentb4dad9bca7593029ab368bc99f7bd96c71cbf4d8 (diff)
downloadscummvm-rg350-d3e281e24cb0ce522dc943b2d2a6bdde0766b62c.tar.gz
scummvm-rg350-d3e281e24cb0ce522dc943b2d2a6bdde0766b62c.tar.bz2
scummvm-rg350-d3e281e24cb0ce522dc943b2d2a6bdde0766b62c.zip
MUTATIONOFJB: Fix uninitialized ChangeOperation, fix parsing tag in IF command and add some comments.
Diffstat (limited to 'engines/mutationofjb/game.h')
-rw-r--r--engines/mutationofjb/game.h22
1 files changed, 19 insertions, 3 deletions
diff --git a/engines/mutationofjb/game.h b/engines/mutationofjb/game.h
index 77e336f024..550be2efc8 100644
--- a/engines/mutationofjb/game.h
+++ b/engines/mutationofjb/game.h
@@ -35,16 +35,33 @@ namespace MutationOfJB {
static const uint8 MAX_STR_LENGTH = 0x14;
struct Door {
+ /*
+ Door name.
+ Can be empty - deactivates door completely.
+ */
char _name[MAX_STR_LENGTH + 1];
+ /*
+ Scene ID where the door leads.
+ Can be 0 - you can hover your mouse over it, but clicking it doesn't do anything (unless scripted).
+ */
uint8 _destSceneId;
+ /* X coordinate for player's position after going through the door. */
uint16 _destX;
+ /* Y coordinate for player's position after going through the door. */
uint16 _destY;
+ /* X coordinate of the door rectangle. */
uint16 _x;
+ /* Y coordinate of the door rectangle. */
uint8 _y;
+ /* Width of the door rectangle. */
uint16 _width;
+ /* Height of the door rectangle. */
uint8 _height;
+ /* X coordinate for position towards player will walk after clicking the door. */
uint16 _walkToX;
+ /* Y coordinate for position towards player will walk after clicking the door. */
uint8 _walkToY;
+ /* Unknown for now - likely not even used. */
uint8 _SP;
bool loadFromStream(Common::ReadStream &stream);
@@ -84,7 +101,7 @@ struct Static {
};
struct Bitmap {
- uint8 _unknown;
+ uint8 _frame;
uint8 _isVisible;
uint16 _x1;
uint8 _y1;
@@ -118,8 +135,7 @@ struct Scene {
Bitmap _bitmaps[10];
- uint8 _obstacleY1;
- uint8 _unknown386;
+ uint16 _obstacleY1;
uint8 _palRotStart;
uint8 _palRotEnd;
uint8 _palRotPeriod;