diff options
-rw-r--r-- | engines/dm/champion.cpp | 27 | ||||
-rw-r--r-- | engines/dm/champion.h | 27 | ||||
-rw-r--r-- | engines/dm/configure.engine | 28 | ||||
-rw-r--r-- | engines/dm/detection.cpp | 27 | ||||
-rw-r--r-- | engines/dm/dm.cpp | 27 | ||||
-rw-r--r-- | engines/dm/dm.h | 27 | ||||
-rw-r--r-- | engines/dm/dungeonman.cpp | 27 | ||||
-rw-r--r-- | engines/dm/dungeonman.h | 27 | ||||
-rw-r--r-- | engines/dm/eventman.cpp | 27 | ||||
-rw-r--r-- | engines/dm/eventman.h | 27 | ||||
-rw-r--r-- | engines/dm/gfx.cpp | 27 | ||||
-rw-r--r-- | engines/dm/gfx.h | 27 | ||||
-rw-r--r-- | engines/dm/inventory.cpp | 27 | ||||
-rw-r--r-- | engines/dm/inventory.h | 27 | ||||
-rw-r--r-- | engines/dm/loadsave.cpp | 27 | ||||
-rw-r--r-- | engines/dm/loadsave.h | 27 | ||||
-rw-r--r-- | engines/dm/menus.cpp | 215 | ||||
-rw-r--r-- | engines/dm/menus.h | 27 | ||||
-rw-r--r-- | engines/dm/module.mk | 28 | ||||
-rw-r--r-- | engines/dm/objectman.cpp | 27 | ||||
-rw-r--r-- | engines/dm/objectman.h | 27 | ||||
-rw-r--r-- | engines/dm/text.cpp | 27 | ||||
-rw-r--r-- | engines/dm/text.h | 27 |
23 files changed, 717 insertions, 94 deletions
diff --git a/engines/dm/champion.cpp b/engines/dm/champion.cpp index 2899f9093c..28f477ccab 100644 --- a/engines/dm/champion.cpp +++ b/engines/dm/champion.cpp @@ -1,3 +1,30 @@ +/* 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.
+*
+*/
+
+/*
+* Based on the Reverse Engineering work of Christophe Fontanel,
+* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/)
+*/
+
#include "champion.h"
#include "dungeonman.h"
#include "eventman.h"
diff --git a/engines/dm/champion.h b/engines/dm/champion.h index 2b2aaf9cb1..0610f2913d 100644 --- a/engines/dm/champion.h +++ b/engines/dm/champion.h @@ -1,3 +1,30 @@ +/* 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. +* +*/ + +/* +* Based on the Reverse Engineering work of Christophe Fontanel, +* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +*/ + #ifndef DM_CHAMPION_H #define DM_CHAMPION_H diff --git a/engines/dm/configure.engine b/engines/dm/configure.engine index 50a3d9975c..476044aab3 100644 --- a/engines/dm/configure.engine +++ b/engines/dm/configure.engine @@ -1,3 +1,31 @@ +# 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. +# +# +# +# +# Based on the Reverse Engineering work of Christophe Fontanel, +# maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +# + + # This file is included from the main "configure" script # add_engine [name] [desc] [build-by-default] [subengines] [base games] [deps] add_engine dm "Dungeon Master" yes diff --git a/engines/dm/detection.cpp b/engines/dm/detection.cpp index 855d1284b9..1d31a7459d 100644 --- a/engines/dm/detection.cpp +++ b/engines/dm/detection.cpp @@ -1,3 +1,30 @@ +/* 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. +* +*/ + +/* +* Based on the Reverse Engineering work of Christophe Fontanel, +* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +*/ + #include "dm/dm.h" #include "common/config-manager.h" diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp index 61810e8376..c8b02e9823 100644 --- a/engines/dm/dm.cpp +++ b/engines/dm/dm.cpp @@ -1,3 +1,30 @@ +/* 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. +* +*/ + +/* +* Based on the Reverse Engineering work of Christophe Fontanel, +* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +*/ + #include "common/scummsys.h" #include "common/system.h" diff --git a/engines/dm/dm.h b/engines/dm/dm.h index 61583a39c1..430c7d39e2 100644 --- a/engines/dm/dm.h +++ b/engines/dm/dm.h @@ -1,3 +1,30 @@ +/* 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. +* +*/ + +/* +* Based on the Reverse Engineering work of Christophe Fontanel, +* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +*/ + #ifndef DM_H #define DM_H diff --git a/engines/dm/dungeonman.cpp b/engines/dm/dungeonman.cpp index 6ff8b7a58e..0041307d06 100644 --- a/engines/dm/dungeonman.cpp +++ b/engines/dm/dungeonman.cpp @@ -1,3 +1,30 @@ +/* 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. +* +*/ + +/* +* Based on the Reverse Engineering work of Christophe Fontanel, +* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +*/ + #include "common/file.h" #include "common/memstream.h" diff --git a/engines/dm/dungeonman.h b/engines/dm/dungeonman.h index 59e1a821c5..1ccb1d2c62 100644 --- a/engines/dm/dungeonman.h +++ b/engines/dm/dungeonman.h @@ -1,3 +1,30 @@ +/* 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. +* +*/ + +/* +* Based on the Reverse Engineering work of Christophe Fontanel, +* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +*/ + #ifndef DUNGEONMAN_H #define DUNGEONMAN_H diff --git a/engines/dm/eventman.cpp b/engines/dm/eventman.cpp index b5937296c2..fd7f907a0f 100644 --- a/engines/dm/eventman.cpp +++ b/engines/dm/eventman.cpp @@ -1,3 +1,30 @@ +/* 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. +* +*/ + +/* +* Based on the Reverse Engineering work of Christophe Fontanel, +* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +*/ + #include "common/system.h" #include "graphics/cursorman.h" diff --git a/engines/dm/eventman.h b/engines/dm/eventman.h index 4b62677474..bbf0b66164 100644 --- a/engines/dm/eventman.h +++ b/engines/dm/eventman.h @@ -1,3 +1,30 @@ +/* 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. +* +*/ + +/* +* Based on the Reverse Engineering work of Christophe Fontanel, +* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +*/ + #ifndef DM_EVENTMAN_H #define DM_EVENTMAN_H diff --git a/engines/dm/gfx.cpp b/engines/dm/gfx.cpp index 8c38f4bb25..14324bdcd6 100644 --- a/engines/dm/gfx.cpp +++ b/engines/dm/gfx.cpp @@ -1,3 +1,30 @@ +/* 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. +* +*/ + +/* +* Based on the Reverse Engineering work of Christophe Fontanel, +* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +*/ + #include "engines/util.h" #include "common/system.h" #include "common/file.h" diff --git a/engines/dm/gfx.h b/engines/dm/gfx.h index 5e0307e7df..11679ef891 100644 --- a/engines/dm/gfx.h +++ b/engines/dm/gfx.h @@ -1,3 +1,30 @@ +/* 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. +* +*/ + +/* +* Based on the Reverse Engineering work of Christophe Fontanel, +* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +*/ + #ifndef GFX_H #define GFX_H diff --git a/engines/dm/inventory.cpp b/engines/dm/inventory.cpp index 31b495ca2b..7dd1b0042f 100644 --- a/engines/dm/inventory.cpp +++ b/engines/dm/inventory.cpp @@ -1,3 +1,30 @@ +/* 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. +* +*/ + +/* +* Based on the Reverse Engineering work of Christophe Fontanel, +* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +*/ + #include "inventory.h" #include "dungeonman.h" #include "eventman.h" diff --git a/engines/dm/inventory.h b/engines/dm/inventory.h index 45bc3e9007..6c34e2a0d4 100644 --- a/engines/dm/inventory.h +++ b/engines/dm/inventory.h @@ -1,3 +1,30 @@ +/* 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. +* +*/ + +/* +* Based on the Reverse Engineering work of Christophe Fontanel, +* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +*/ + #include "dm.h" #include "gfx.h" #include "champion.h" diff --git a/engines/dm/loadsave.cpp b/engines/dm/loadsave.cpp index 1a07ae2e35..0251e8b0f2 100644 --- a/engines/dm/loadsave.cpp +++ b/engines/dm/loadsave.cpp @@ -1,3 +1,30 @@ +/* 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. +* +*/ + +/* +* Based on the Reverse Engineering work of Christophe Fontanel, +* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +*/ + #include "loadsave.h" #include "dungeonman.h" #include "champion.h" diff --git a/engines/dm/loadsave.h b/engines/dm/loadsave.h index abedf54908..71043a223c 100644 --- a/engines/dm/loadsave.h +++ b/engines/dm/loadsave.h @@ -1,3 +1,30 @@ +/* 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. +* +*/ + +/* +* Based on the Reverse Engineering work of Christophe Fontanel, +* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +*/ + #ifndef DM_LOADSAVE_H #define DM_LOADSAVE_H diff --git a/engines/dm/menus.cpp b/engines/dm/menus.cpp index b3464647a5..7b971e53e1 100644 --- a/engines/dm/menus.cpp +++ b/engines/dm/menus.cpp @@ -1,94 +1,121 @@ -#include "menus.h" -#include "gfx.h" -#include "champion.h" -#include "dungeonman.h" -#include "objectman.h" -#include "inventory.h" - - -namespace DM { - -byte gPalChangesActionAreaObjectIcon[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 0, 0, 0}; // @ G0498_auc_Graphic560_PaletteChanges_ActionAreaObjectIcon - -MenuMan::MenuMan(DMEngine *vm) : _vm(vm) { - _shouldRefreshActionArea = false; - _actionAreaContainsIcons = false; -} - -void MenuMan::drawMovementArrows() { - DisplayMan &disp = *_vm->_displayMan; - byte *arrowsBitmap = disp.getBitmap(kMovementArrowsIndice); - Box &dest = gBoxMovementArrows; - uint16 w = disp.getWidth(kMovementArrowsIndice); - - disp.blitToScreen(arrowsBitmap, w, 0, 0, dest._x1, dest._x2, dest._y1, dest._y2, kColorNoTransparency); -} -void MenuMan::clearActingChampion() { - ChampionMan &cm = *_vm->_championMan; - if (cm._actingChampionOrdinal) { - cm._actingChampionOrdinal--; - cm._champions[cm._actingChampionOrdinal].setAttributeFlag(kChampionAttributeActionHand, true); - cm.drawChampionState((ChampionIndex)cm._actingChampionOrdinal); - cm._actingChampionOrdinal = indexToOrdinal(kChampionNone); - _shouldRefreshActionArea = true; - } -} - -void MenuMan::drawActionIcon(ChampionIndex championIndex) { - if (!_actionAreaContainsIcons) - return; - DisplayMan &dm = *_vm->_displayMan; - Champion &champion = _vm->_championMan->_champions[championIndex]; - - Box box; - box._x1 = championIndex * 22 + 233; - box._x2 = box._x1 + 19 + 1; - box._y1 = 86; - box._y2 = 120 + 1; - dm._useByteBoxCoordinates = false; - if (!champion._currHealth) { - dm.clearScreenBox(kColorBlack, box); - return; - } - byte *bitmapIcon = dm._tmpBitmap; - Thing thing = champion.getSlot(kChampionSlotActionHand); - IconIndice iconIndex; - if (thing == Thing::_thingNone) { - iconIndex = kIconIndiceActionEmptyHand; - } else if (gObjectInfo[_vm->_dungeonMan->getObjectInfoIndex(thing)]._actionSetIndex) { - iconIndex = _vm->_objectMan->getIconIndex(thing); - } else { - dm.clearBitmap(bitmapIcon, 16, 16, kColorCyan); - goto T0386006; - } - _vm->_objectMan->extractIconFromBitmap(iconIndex, bitmapIcon); - dm.blitToBitmapShrinkWithPalChange(bitmapIcon, 16, 16, bitmapIcon, 16, 16, gPalChangesActionAreaObjectIcon); -T0386006: - dm.clearScreenBox(kColorCyan, box); - Box box2; - box2._x1 = box._x1 + 2; - box2._x2 = box._x2 - 2; // no need to add +1 for exclusive boundaries, box already has that - box2._y1 = 95; - box2._y2 = 110 + 1; - dm.blitToScreen(bitmapIcon, 16, 0, 0, box2._x1, box2._x2, box2._y1, box2._y2); - if (champion.getAttributes(kChampionAttributeDisableAction) || _vm->_championMan->_candidateChampionOrdinal || _vm->_championMan->_partyIsSleeping) { - warning("MISSING CODE: F0136_VIDEO_ShadeScreenBox"); - } -} - -void MenuMan::drawDisabledMenu() { - if (!_vm->_championMan->_partyIsSleeping) { - warning("MISSING CODE: F0363_COMMAND_HighlightBoxDisable"); - _vm->_displayMan->_useByteBoxCoordinates = false; - if (_vm->_inventoryMan->_inventoryChampionOrdinal) { - warning("MISSING CODE: F0334_INVENTORY_CloseChest"); - } else { - warning("MISSING CODE: F0136_VIDEO_ShadeScreenBox"); - } - warning("MISSING CODE: F0136_VIDEO_ShadeScreenBox"); - warning("MISSING CODE: F0136_VIDEO_ShadeScreenBox"); - warning("MISSING CODE: F0067_MOUSE_SetPointerToNormal"); - } -} - -} +/* 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.
+*
+*/
+
+/*
+* Based on the Reverse Engineering work of Christophe Fontanel,
+* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/)
+*/
+
+#include "menus.h"
+#include "gfx.h"
+#include "champion.h"
+#include "dungeonman.h"
+#include "objectman.h"
+#include "inventory.h"
+
+
+namespace DM {
+
+byte gPalChangesActionAreaObjectIcon[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 0, 0, 0}; // @ G0498_auc_Graphic560_PaletteChanges_ActionAreaObjectIcon
+
+MenuMan::MenuMan(DMEngine *vm) : _vm(vm) {
+ _shouldRefreshActionArea = false;
+ _actionAreaContainsIcons = false;
+}
+
+void MenuMan::drawMovementArrows() {
+ DisplayMan &disp = *_vm->_displayMan;
+ byte *arrowsBitmap = disp.getBitmap(kMovementArrowsIndice);
+ Box &dest = gBoxMovementArrows;
+ uint16 w = disp.getWidth(kMovementArrowsIndice);
+
+ disp.blitToScreen(arrowsBitmap, w, 0, 0, dest._x1, dest._x2, dest._y1, dest._y2, kColorNoTransparency);
+}
+void MenuMan::clearActingChampion() {
+ ChampionMan &cm = *_vm->_championMan;
+ if (cm._actingChampionOrdinal) {
+ cm._actingChampionOrdinal--;
+ cm._champions[cm._actingChampionOrdinal].setAttributeFlag(kChampionAttributeActionHand, true);
+ cm.drawChampionState((ChampionIndex)cm._actingChampionOrdinal);
+ cm._actingChampionOrdinal = indexToOrdinal(kChampionNone);
+ _shouldRefreshActionArea = true;
+ }
+}
+
+void MenuMan::drawActionIcon(ChampionIndex championIndex) {
+ if (!_actionAreaContainsIcons)
+ return;
+ DisplayMan &dm = *_vm->_displayMan;
+ Champion &champion = _vm->_championMan->_champions[championIndex];
+
+ Box box;
+ box._x1 = championIndex * 22 + 233;
+ box._x2 = box._x1 + 19 + 1;
+ box._y1 = 86;
+ box._y2 = 120 + 1;
+ dm._useByteBoxCoordinates = false;
+ if (!champion._currHealth) {
+ dm.clearScreenBox(kColorBlack, box);
+ return;
+ }
+ byte *bitmapIcon = dm._tmpBitmap;
+ Thing thing = champion.getSlot(kChampionSlotActionHand);
+ IconIndice iconIndex;
+ if (thing == Thing::_thingNone) {
+ iconIndex = kIconIndiceActionEmptyHand;
+ } else if (gObjectInfo[_vm->_dungeonMan->getObjectInfoIndex(thing)]._actionSetIndex) {
+ iconIndex = _vm->_objectMan->getIconIndex(thing);
+ } else {
+ dm.clearBitmap(bitmapIcon, 16, 16, kColorCyan);
+ goto T0386006;
+ }
+ _vm->_objectMan->extractIconFromBitmap(iconIndex, bitmapIcon);
+ dm.blitToBitmapShrinkWithPalChange(bitmapIcon, 16, 16, bitmapIcon, 16, 16, gPalChangesActionAreaObjectIcon);
+T0386006:
+ dm.clearScreenBox(kColorCyan, box);
+ Box box2;
+ box2._x1 = box._x1 + 2;
+ box2._x2 = box._x2 - 2; // no need to add +1 for exclusive boundaries, box already has that
+ box2._y1 = 95;
+ box2._y2 = 110 + 1;
+ dm.blitToScreen(bitmapIcon, 16, 0, 0, box2._x1, box2._x2, box2._y1, box2._y2);
+ if (champion.getAttributes(kChampionAttributeDisableAction) || _vm->_championMan->_candidateChampionOrdinal || _vm->_championMan->_partyIsSleeping) {
+ warning("MISSING CODE: F0136_VIDEO_ShadeScreenBox");
+ }
+}
+
+void MenuMan::drawDisabledMenu() {
+ if (!_vm->_championMan->_partyIsSleeping) {
+ warning("MISSING CODE: F0363_COMMAND_HighlightBoxDisable");
+ _vm->_displayMan->_useByteBoxCoordinates = false;
+ if (_vm->_inventoryMan->_inventoryChampionOrdinal) {
+ warning("MISSING CODE: F0334_INVENTORY_CloseChest");
+ } else {
+ warning("MISSING CODE: F0136_VIDEO_ShadeScreenBox");
+ }
+ warning("MISSING CODE: F0136_VIDEO_ShadeScreenBox");
+ warning("MISSING CODE: F0136_VIDEO_ShadeScreenBox");
+ warning("MISSING CODE: F0067_MOUSE_SetPointerToNormal");
+ }
+}
+
+}
diff --git a/engines/dm/menus.h b/engines/dm/menus.h index edaa970bd5..91f89cd7d5 100644 --- a/engines/dm/menus.h +++ b/engines/dm/menus.h @@ -1,3 +1,30 @@ +/* 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. +* +*/ + +/* +* Based on the Reverse Engineering work of Christophe Fontanel, +* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +*/ + #ifndef DM_MENUS_H #define DM_MENUS_H diff --git a/engines/dm/module.mk b/engines/dm/module.mk index bc36e8b6eb..b78ad9679e 100644 --- a/engines/dm/module.mk +++ b/engines/dm/module.mk @@ -1,3 +1,31 @@ +# 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. +# +# +# +# +# Based on the Reverse Engineering work of Christophe Fontanel, +# maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +# + + MODULE := engines/dm MODULE_OBJS := \ diff --git a/engines/dm/objectman.cpp b/engines/dm/objectman.cpp index 96f95798f7..f75b116427 100644 --- a/engines/dm/objectman.cpp +++ b/engines/dm/objectman.cpp @@ -1,3 +1,30 @@ +/* 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. +* +*/ + +/* +* Based on the Reverse Engineering work of Christophe Fontanel, +* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +*/ + #include "objectman.h" #include "dungeonman.h" diff --git a/engines/dm/objectman.h b/engines/dm/objectman.h index fd0f5a1b6f..740ac0fd4e 100644 --- a/engines/dm/objectman.h +++ b/engines/dm/objectman.h @@ -1,3 +1,30 @@ +/* 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. +* +*/ + +/* +* Based on the Reverse Engineering work of Christophe Fontanel, +* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +*/ + #include "dm.h" #include "champion.h" diff --git a/engines/dm/text.cpp b/engines/dm/text.cpp index 5ad2ac7b6a..3adc1a9ecb 100644 --- a/engines/dm/text.cpp +++ b/engines/dm/text.cpp @@ -1,3 +1,30 @@ +/* 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. +* +*/ + +/* +* Based on the Reverse Engineering work of Christophe Fontanel, +* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +*/ + #include "text.h" diff --git a/engines/dm/text.h b/engines/dm/text.h index d273de3041..1a413ee87f 100644 --- a/engines/dm/text.h +++ b/engines/dm/text.h @@ -1,3 +1,30 @@ +/* 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. +* +*/ + +/* +* Based on the Reverse Engineering work of Christophe Fontanel, +* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +*/ + #ifndef DM_TEXT_H #define DM_TEXT_H |