ScummVM API documentation
MutationOfJB::Scene Struct Reference
Inheritance diagram for MutationOfJB::Scene:
Common::Serializable

Public Member Functions

DoorgetDoor (uint8 objectId)
 
ObjectgetObject (uint8 objectId, bool ignoreNo=false)
 
StaticgetStatic (uint8 staticId, bool ignoreNo=false)
 
BitmapgetBitmap (uint8 bitmapId)
 
uint8 getNoDoors (bool ignoreNo=false) const
 
uint8 getNoObjects (bool ignoreNo=false) const
 
uint8 getNoStatics (bool ignoreNo=false) const
 
uint8 getNoBitmaps () const
 
DoorfindDoor (int16 x, int16 y, bool activeOnly=true, int *index=nullptr)
 
StaticfindStatic (int16 x, int16 y, bool activeOnly=true, int *index=nullptr)
 
BitmapfindBitmap (int16 x, int16 y, int *index=nullptr)
 
void addExhaustedConvItem (uint8 context, uint8 convItemIndex, uint8 convGroupIndex)
 
bool isConvItemExhausted (uint8 context, uint8 convItemIndex, uint8 convGroupIndex) const
 
bool loadInitialState (Common::ReadStream &stream)
 
void saveLoadWithSerializer (Common::Serializer &sz) override
 

Public Attributes

uint8 _startup
 
uint8 _unknown001
 
uint8 _unknown002
 
uint8 _unknown003
 
uint8 _delay
 
uint8 _noDoors
 
Door _doors [5]
 
uint8 _noObjects
 
Object _objects [9]
 
uint8 _noStatics
 
Static _statics [15]
 
Bitmap _bitmaps [10]
 
uint16 _obstacleY1
 
uint8 _palRotFirst
 
uint8 _palRotLast
 
uint8 _palRotDelay
 
uint8 _exhaustedConvItemNext
 
ExhaustedConvItem _exhaustedConvItems [79]
 

Member Function Documentation

◆ findDoor()

Door* MutationOfJB::Scene::findDoor ( int16  x,
int16  y,
bool  activeOnly = true,
int *  index = nullptr 
)

Finds the door at the given position. By default, only active doors are considered.

Parameters
xX coordinate.
yY coordinate.
activeOnlyIf true, consider only active doors; otherwise consider any.
indexOutput parameter for the found door's ID.
Returns
A door if found, nullptr otherwise.

◆ findStatic()

Static* MutationOfJB::Scene::findStatic ( int16  x,
int16  y,
bool  activeOnly = true,
int *  index = nullptr 
)

Finds the static at the given position. By default, only active statics are considered.

Parameters
xX coordinate.
yY coordinate.
activeOnlyIf true, consider only active statics; otherwise consider any.
indexOutput parameter for the found static's ID.
Returns
A static if found, nullptr otherwise.

◆ loadInitialState()

bool MutationOfJB::Scene::loadInitialState ( Common::ReadStream stream)

Load initial state from game data file.

Parameters
streamStream for reading.
Returns
True if success, false otherwise.

◆ saveLoadWithSerializer()

void MutationOfJB::Scene::saveLoadWithSerializer ( Common::Serializer sz)
overridevirtual

(De)serialization for save/load.

Parameters
szSerializer.

Implements Common::Serializable.

Member Data Documentation

◆ _startup

uint8 MutationOfJB::Scene::_startup

Refers to the script block that will be executed when you enter this scene (DS register).

◆ _unknown001

uint8 MutationOfJB::Scene::_unknown001

These three variables control downscaling of the player character depending on his Y. TODO: Find out more.

◆ _delay

uint8 MutationOfJB::Scene::_delay

Delay between object animation advancements (DL register).

◆ _noDoors

uint8 MutationOfJB::Scene::_noDoors

Number of doors in the scene (ND register).

◆ _doors

Door MutationOfJB::Scene::_doors[5]

Door definitions.

◆ _noObjects

uint8 MutationOfJB::Scene::_noObjects

Number of animated objects in the scene (NO register).

◆ _objects

Object MutationOfJB::Scene::_objects[9]

Object definitions.

◆ _noStatics

uint8 MutationOfJB::Scene::_noStatics

Number of statics in the scene (NS register).

◆ _statics

Static MutationOfJB::Scene::_statics[15]

Static definitions.

◆ _bitmaps

Bitmap MutationOfJB::Scene::_bitmaps[10]

Bitmap definitions. There is no corresponding _noBitmaps field.

◆ _obstacleY1

uint16 MutationOfJB::Scene::_obstacleY1

Fixed Y coordinate for all static obstacles in the scene. Always 0 in data files.

◆ _palRotFirst

uint8 MutationOfJB::Scene::_palRotFirst

First index (inclusive and 0-indexed) of the rotating portion of the palette (PF register).

◆ _palRotLast

uint8 MutationOfJB::Scene::_palRotLast

Last index (inclusive and 0-indexed) of the rotating portion of the palette (PL register).

◆ _palRotDelay

uint8 MutationOfJB::Scene::_palRotDelay

Delay between each right rotation of the palette portion (PD register).

◆ _exhaustedConvItemNext

uint8 MutationOfJB::Scene::_exhaustedConvItemNext

Points to the first free item in exhausted conversation item array.

Note
Indexed from 1.

The documentation for this struct was generated from the following file: