diff options
-rw-r--r-- | engines/hdb/hdb.h | 1 | ||||
-rw-r--r-- | engines/hdb/map-loader.cpp | 41 | ||||
-rw-r--r-- | engines/hdb/map-loader.h | 72 | ||||
-rw-r--r-- | engines/hdb/module.mk | 1 |
4 files changed, 115 insertions, 0 deletions
diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h index 82028d8c77..a07e77ec0c 100644 --- a/engines/hdb/hdb.h +++ b/engines/hdb/hdb.h @@ -38,6 +38,7 @@ #include "hdb/file-manager.h" #include "hdb/draw-manager.h" #include "hdb/lua-script.h" +#include "hdb/map-loader.h" #define MAX_SNDCACHE_MEM 0x400000 // 4Mb of sounds in memory #define MAX_TILES_CACHED 3500 // Max no of tiles in memory at once diff --git a/engines/hdb/map-loader.cpp b/engines/hdb/map-loader.cpp new file mode 100644 index 0000000000..85f119771f --- /dev/null +++ b/engines/hdb/map-loader.cpp @@ -0,0 +1,41 @@ +/* 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. + * + */ + +#include "hdb/hdb.h" + +namespace HDB { + +MapLoader::MapLoader() { + _mapLoaded = false; +} + +bool MapLoader::loadMap(Common::SeekableReadStream *stream) { + warning("STUB: MAPLOADER: LOAD MAP"); + return false; +} + +int MapLoader::loadTiles() { + warning("STUB: MAPLOADER: LOAD TILES"); + return 0; +} + +} diff --git a/engines/hdb/map-loader.h b/engines/hdb/map-loader.h new file mode 100644 index 0000000000..b1b2a4eedf --- /dev/null +++ b/engines/hdb/map-loader.h @@ -0,0 +1,72 @@ +/* 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 HDB_MAP_LOADER_H +#define HDB_MAP_LOADER_H + +#include "common/system.h" + +namespace HDB { + +struct MSMEntry { + char name[32]; + uint16 width; + uint16 height; + uint32 background; + uint32 foreground; + uint16 iconNum; + uint32 iconList; + uint16 infoNum; + uint32 infoList; +}; + +struct MSMIcon { + uint16 icon; // index into icon list + uint16 x; + uint16 y; + + char funcInit[32]; // Lua init function for this entity + char funcAction[32]; + char funcUse[32]; + uint16 dir; // direction entity is facing + uint16 level; // which floor level entity is on + uint16 value1, value2; +}; + +class MapLoader { +public: + MapLoader(); + + bool loadMap(Common::SeekableReadStream *stream); + int loadTiles(); + + bool isLoaded() { + return _mapLoaded; + } + +private: + bool _mapLoaded; +}; + +} + +#endif // !HDB_MAP_LOADER_H diff --git a/engines/hdb/module.mk b/engines/hdb/module.mk index fda8f797c1..ca2af8a10e 100644 --- a/engines/hdb/module.mk +++ b/engines/hdb/module.mk @@ -6,6 +6,7 @@ MODULE_OBJS := \ file-manager.o \ hdb.o \ lua-script.o \ + map-loader.o \ console.o MODULE_DIRS += \ |