aboutsummaryrefslogtreecommitdiff
path: root/engines/dm
diff options
context:
space:
mode:
authorWinterGrascph2016-05-07 23:27:16 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commit853b87f19e2ad99db495be9e86a312d8775ed37c (patch)
tree0a2e0786109f38d5a413d340684d088e0d5cc268 /engines/dm
parent8172a07d1ad933b228313f164b7d6a5b1bf3951e (diff)
downloadscummvm-rg350-853b87f19e2ad99db495be9e86a312d8775ed37c.tar.gz
scummvm-rg350-853b87f19e2ad99db495be9e86a312d8775ed37c.tar.bz2
scummvm-rg350-853b87f19e2ad99db495be9e86a312d8775ed37c.zip
DM: Add drawDungeon test code
Diffstat (limited to 'engines/dm')
-rw-r--r--engines/dm/dm.h1
-rw-r--r--engines/dm/gfx.cpp10
2 files changed, 11 insertions, 0 deletions
diff --git a/engines/dm/dm.h b/engines/dm/dm.h
index 22ef1ec072..d5d748754f 100644
--- a/engines/dm/dm.h
+++ b/engines/dm/dm.h
@@ -34,6 +34,7 @@ public:
private:
Console *_console;
Common::RandomSource *_rnd;
+public:
DisplayMan *_displayMan;
DungeonMan *_dungeonMan;
};
diff --git a/engines/dm/gfx.cpp b/engines/dm/gfx.cpp
index 0c2efc6b71..fd3b28169a 100644
--- a/engines/dm/gfx.cpp
+++ b/engines/dm/gfx.cpp
@@ -4,6 +4,7 @@
#include "common/file.h"
#include "graphics/palette.h"
#include "common/endian.h"
+#include "dm/dungeonman.h"
namespace DM {
@@ -37,6 +38,8 @@ struct Frame {
Frame gCeilingFrame = {0, 223, 0, 28, 0, 0};
Frame gFloorFrame = {0, 223, 66, 135, 0, 0};
+Frame gWallFrameD3L2 = {0, 15, 25, 73, 0, 0}; // @ FRAME G0711_s_Graphic558_Frame_Wall_D3L2
+Frame gWallFrameD3R2 = {208, 223, 25, 73, 0, 0}; // @ G0712_s_Graphic558_Frame_Wall_D3R2
extern Viewport gDefultViewPort = {0, 0};
extern Viewport gDungeonViewport = {0, 64}; // TODO: I guessed the numbers
@@ -264,6 +267,13 @@ void DisplayMan::drawDungeon(direction dir, uint16 posX, uint16 posY) {
drawWallSetBitmap(_bitmaps[gFloorIndice], gFloorFrame, width(gFloorIndice));
}
+ // TODO: CRUDE TEST CODE AT BEST
+ if (_vm->_dungeonMan->getRelSquareType(dir, 3, -2, posX, posY) == kWallSquareType)
+ drawWallSetBitmap(_bitmaps[77 + 12], gWallFrameD3L2, width(77 + 12));
+ // TODO CRUDE TEST CODE AT BEST
+
+
+
delete[] tmpBitmap;
}