/* 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 ULTIMA4_CONTROLLERS_INTRO_CONTROLLER_H
#define ULTIMA4_CONTROLLERS_INTRO_CONTROLLER_H
#include "ultima/ultima4/controllers/controller.h"
#include "ultima/ultima4/core/observer.h"
#include "ultima/ultima4/filesys/savegame.h"
#include "ultima/ultima4/views/menu.h"
#include "ultima/ultima4/views/textview.h"
#include "ultima/ultima4/views/imageview.h"
#include "ultima/ultima4/views/tileview.h"
#include "common/file.h"
namespace Ultima {
namespace Ultima4 {
class IntroObjectState;
class Tile;
/**
* Binary data loaded from the U4DOS title.exe file.
*/
class IntroBinData {
private:
// disallow assignments, copy construction
IntroBinData(const IntroBinData &);
const IntroBinData &operator=(const IntroBinData &);
void openFile(Common::File &f, const Common::String &name);
public:
IntroBinData();
~IntroBinData();
bool load();
Std::vector _introMap;
byte *_sigData;
byte *_scriptTable;
Tile **_baseTileTable;
byte *_beastie1FrameTable;
byte *_beastie2FrameTable;
Std::vector _introText;
Std::vector _introQuestions;
Std::vector _introGypsy;
};
/**
* Controls the title animation sequences, including the traditional
* plotted "Lord British" signature, the pixelized fade-in of the
* "Ultima IV" game title, as well as the other more simple animated
* features, followed by the traditional animated map and "Journey
* Onward" menu, plus the xU4-specific configuration menu.
*
* @todo
*
* - make initial menu a Menu too
* - get rid of mode and switch(mode) statements
* - get rid global intro instance -- should only need to be accessed from u4.cpp
*
*/
class IntroController : public Controller, public Observer