/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
*/
#ifndef SHERLOCK_SCENE_H
#define SHERLOCK_SCENE_H
#include "common/scummsys.h"
#include "common/array.h"
#include "common/rect.h"
#include "common/serializer.h"
#include "sherlock/objects.h"
#include "sherlock/resources.h"
#include "sherlock/screen.h"
namespace Sherlock {
#define MAX_ZONES 40
#define INFO_LINE 140
class SherlockEngine;
struct BgFileHeader {
int _numStructs;
int _numImages;
int _numcAnimations;
int _descSize;
int _seqSize;
// Serrated Scalpel
int _fill;
// Rose Tattoo
int _scrollSize;
int _bytesWritten; // Size of the main body of the RRM
int _fadeStyle; // Fade style
byte _palette[Graphics::PALETTE_SIZE]; // Palette
BgFileHeader();
/**
* Load the data for the object
*/
void load(Common::SeekableReadStream &s, bool isRoseTattoo);
};
struct BgFileHeaderInfo {
int _filesize; // How long images are
int _maxFrames; // How many unique frames in object
Common::String _filename; // Filename of object
/**
* Load the data for the object
*/
void load(Common::SeekableReadStream &s);
void load3DO(Common::SeekableReadStream &s);
};
class Exit: public Common::Rect {
public:
int _scene;
int _allow;
PositionFacing _newPosition;
Common::String _dest;
int _image; // Arrow image to use
/**
* Load the data for the object
*/
void load(Common::SeekableReadStream &s, bool isRoseTattoo);
void load3DO(Common::SeekableReadStream &s);
};
struct SceneEntry {
Common::Point _startPosition;
int _startDir;
int _allow;
/**
* Load the data for the object
*/
void load(Common::SeekableReadStream &s);
void load3DO(Common::SeekableReadStream &s);
};
struct SceneSound {
Common::String _name;
int _priority;
/**
* Load the data for the object
*/
void load(Common::SeekableReadStream &s);
void load3DO(Common::SeekableReadStream &s);
};
class ObjectArray : public Common::Array