diff options
author | athrxx | 2011-12-17 22:39:11 +0100 |
---|---|---|
committer | Johannes Schickel | 2011-12-26 16:18:16 +0100 |
commit | 60330556ff5bf319db7815e6f3c635bc98edecc5 (patch) | |
tree | 99fb53e89ea5dc9897cc0eee8d8d1b866ec287f2 /engines/kyra/screen_rpg.h | |
parent | 8716ed1703f55b4c0e33a87cf40b65d06151c641 (diff) | |
download | scummvm-rg350-60330556ff5bf319db7815e6f3c635bc98edecc5.tar.gz scummvm-rg350-60330556ff5bf319db7815e6f3c635bc98edecc5.tar.bz2 scummvm-rg350-60330556ff5bf319db7815e6f3c635bc98edecc5.zip |
KYRA: (EOB/LOL) - move eob/lol specific screen code to new class
Diffstat (limited to 'engines/kyra/screen_rpg.h')
-rw-r--r-- | engines/kyra/screen_rpg.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/engines/kyra/screen_rpg.h b/engines/kyra/screen_rpg.h new file mode 100644 index 0000000000..e9b15c25ef --- /dev/null +++ b/engines/kyra/screen_rpg.h @@ -0,0 +1,61 @@ +/* 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 2
+ * 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, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef KYRA_SCREEN_RPG_H
+#define KYRA_SCREEN_RPG_H
+
+#if defined(ENABLE_EOB) || defined(ENABLE_LOL)
+
+#include "kyra/screen.h"
+#include "common/system.h"
+
+namespace Kyra {
+
+class Screen;
+class KyraEngine_v1;
+
+class Screen_Rpg : virtual public Screen {
+public:
+ Screen_Rpg(KyraEngine_v1 *vm, OSystem *system, const ScreenDim *dimTable, int dimTableSize);
+ virtual ~Screen_Rpg();
+
+ virtual void setScreenDim(int dim);
+ virtual const ScreenDim *getScreenDim(int dim);
+ virtual int screenDimTableCount() const = 0;
+
+ void modifyScreenDim(int dim, int x, int y, int w, int h);
+ int curDimIndex() const { return _curDimIndex; }
+
+ void crossFadeRegion(int x1, int y1, int x2, int y2, int w, int h, int srcPage, int dstPage);
+
+private:
+ int _curDimIndex;
+ int _screenDimTableCount;
+ ScreenDim **_customDimTable;
+ const ScreenDim *_screenDimTable;
+};
+
+} // End of namespace Kyra
+
+#endif // ENABLE_EOB || ENABLE_LOL
+
+#endif
|