107 lines
2.7 KiB
C++
107 lines
2.7 KiB
C++
/* 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 <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
#ifndef ULTIMA_ULTIMA1_U6GFX_GAME_VIEW_H
|
|
#define ULTIMA_ULTIMA1_U6GFX_GAME_VIEW_H
|
|
|
|
#include "ultima/shared/gfx/visual_container.h"
|
|
|
|
namespace Ultima {
|
|
namespace Shared {
|
|
class Info;
|
|
class ViewportDungeon;
|
|
} // End of namespace Shared
|
|
} // End of namespace Ultima
|
|
|
|
namespace Ultima {
|
|
namespace Shared {
|
|
namespace Actions {
|
|
class Action;
|
|
} // End of namespace Actions
|
|
} // End of namespace Shared
|
|
} // End of namespace Ultima
|
|
|
|
namespace Ultima {
|
|
namespace Ultima1 {
|
|
namespace U1Gfx {
|
|
class Status;
|
|
} // End of namespace U1Gfx
|
|
} // End of namespace Ultima1
|
|
} // End of namespace Ultima
|
|
|
|
namespace Ultima {
|
|
namespace Ultima1 {
|
|
namespace U6Gfx {
|
|
|
|
using Shared::CKeypressMsg;
|
|
|
|
/**
|
|
* This class implements a standard view screen that shows a status and log area, as well as either
|
|
* a map or dungeon view covering the bulk of the screen
|
|
*/
|
|
class GameView : public Shared::Gfx::VisualContainer {
|
|
/**
|
|
* Simple class encapsulating the logic for drawing the Ultima 6 scroll onto a surface
|
|
*/
|
|
class Scroll : private Graphics::ManagedSurface {
|
|
public:
|
|
/**
|
|
* Constructor
|
|
*/
|
|
Scroll();
|
|
|
|
/**
|
|
* Draw a scroll of a given size
|
|
*/
|
|
void draw(Graphics::ManagedSurface &dest, const Common::Rect &r);
|
|
};
|
|
|
|
DECLARE_MESSAGE_MAP;
|
|
bool KeypressMsg(CKeypressMsg *msg);
|
|
private:
|
|
Shared::Info *_info;
|
|
U1Gfx::Status *_status;
|
|
// Shared::ViewportDungeon *_viewportDungeon;
|
|
Shared::Actions::Action *_actions[4];
|
|
Graphics::ManagedSurface _background;
|
|
private:
|
|
/**
|
|
* Sets up the background for the screen by adapting the Ultima 6 game background to fit the
|
|
* asthetics needed for Ultima 1
|
|
*/
|
|
void loadBackground();
|
|
public:
|
|
CLASSDEF;
|
|
GameView(Shared::TreeItem *parent = nullptr);
|
|
~GameView() override;
|
|
|
|
/**
|
|
* Draw the game screen
|
|
*/
|
|
void draw() override;
|
|
};
|
|
|
|
} // End of namespace U6Gfx
|
|
} // End of namespace Shared
|
|
} // End of namespace Ultima
|
|
|
|
#endif
|