2014-10-06 14:50:05 +02:00
|
|
|
/* 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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This code is based on Labyrinth of Time code with assistance of
|
|
|
|
*
|
|
|
|
* Copyright (c) 1993 Terra Nova Development
|
|
|
|
* Copyright (c) 2004 The Wyrmkeep Entertainment Co.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2014-12-25 19:13:52 +01:00
|
|
|
#include "lab/lab.h"
|
2015-12-08 21:10:54 +01:00
|
|
|
|
2015-12-08 21:19:41 +01:00
|
|
|
#include "lab/dispman.h"
|
|
|
|
#include "lab/eventman.h"
|
2015-12-08 21:10:54 +01:00
|
|
|
#include "lab/image.h"
|
2015-12-08 21:28:45 +01:00
|
|
|
#include "lab/interface.h"
|
2015-12-08 21:00:50 +01:00
|
|
|
#include "lab/labsets.h"
|
2015-12-08 20:36:05 +01:00
|
|
|
#include "lab/music.h"
|
2015-12-08 21:47:36 +01:00
|
|
|
#include "lab/processroom.h"
|
2015-12-08 21:10:54 +01:00
|
|
|
#include "lab/resource.h"
|
2015-12-08 21:00:50 +01:00
|
|
|
#include "lab/utils.h"
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
namespace Lab {
|
|
|
|
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
|
|
/*------------------------------ The Map stuff ------------------------------*/
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
static Image *Map, *Room, *UpArrowRoom, *DownArrowRoom, *Bridge,
|
|
|
|
*HRoom, *VRoom, *Maze, *HugeMaze, *Path, *MapNorth,
|
2015-12-03 15:23:40 +02:00
|
|
|
*MapEast, *MapSouth, *MapWest, *XMark;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
static uint16 MaxRooms;
|
|
|
|
static MapData *Maps;
|
|
|
|
|
2015-12-08 17:08:04 +02:00
|
|
|
enum MapFloor {
|
|
|
|
kFloorNone,
|
|
|
|
kFloorLower,
|
|
|
|
kFloorMiddle,
|
|
|
|
kFloorUpper,
|
|
|
|
kFloorMedMaze,
|
|
|
|
kFloorHedgeMaze,
|
|
|
|
kFloorSurMaze,
|
|
|
|
kFloorCarnival
|
|
|
|
};
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-08 09:46:54 +01:00
|
|
|
/**
|
|
|
|
* Loads in the map data.
|
|
|
|
*/
|
2015-12-08 16:53:30 +02:00
|
|
|
void LabEngine::loadMapData() {
|
|
|
|
Utils *utils = g_lab->_utils;
|
2015-12-03 15:06:45 +02:00
|
|
|
Common::File *mapImages = g_lab->_resource->openDataFile("P:MapImage");
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-03 15:06:45 +02:00
|
|
|
Map = new Image(mapImages);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-03 15:06:45 +02:00
|
|
|
Room = new Image(mapImages);
|
|
|
|
UpArrowRoom = new Image(mapImages);
|
|
|
|
DownArrowRoom = new Image(mapImages);
|
|
|
|
HRoom = new Image(mapImages);
|
|
|
|
VRoom = new Image(mapImages);
|
|
|
|
Maze = new Image(mapImages);
|
|
|
|
HugeMaze = new Image(mapImages);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-03 15:06:45 +02:00
|
|
|
MapNorth = new Image(mapImages);
|
|
|
|
MapEast = new Image(mapImages);
|
|
|
|
MapSouth = new Image(mapImages);
|
|
|
|
MapWest = new Image(mapImages);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-03 15:06:45 +02:00
|
|
|
Path = new Image(mapImages);
|
|
|
|
Bridge = new Image(mapImages);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-08 16:53:30 +02:00
|
|
|
_mapGadgetList.push_back(createButton( 8, utils->vgaScaleY(105), 0, VKEY_LTARROW, new Image(mapImages), new Image(mapImages))); // back
|
|
|
|
_mapGadgetList.push_back(createButton( 55, utils->vgaScaleY(105), 1, VKEY_UPARROW, new Image(mapImages), new Image(mapImages))); // up
|
|
|
|
_mapGadgetList.push_back(createButton(101, utils->vgaScaleY(105), 2, VKEY_DNARROW, new Image(mapImages), new Image(mapImages))); // down
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-03 15:06:45 +02:00
|
|
|
delete mapImages;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-11-30 00:34:43 +01:00
|
|
|
Common::File *mapFile = g_lab->_resource->openDataFile("Lab:Maps", MKTAG('M', 'A', 'P', '0'));
|
2015-11-30 01:17:05 +01:00
|
|
|
g_lab->_music->updateMusic();
|
|
|
|
if (!g_lab->_music->_doNotFilestopSoundEffect)
|
|
|
|
g_lab->_music->stopSoundEffect();
|
2015-10-14 01:51:18 +03:00
|
|
|
|
|
|
|
MaxRooms = mapFile->readUint16LE();
|
|
|
|
Maps = new MapData[MaxRooms]; // will be freed when the user exits the map
|
|
|
|
for (int i = 0; i < MaxRooms; i++) {
|
2015-12-09 11:22:41 +01:00
|
|
|
Maps[i]._x = mapFile->readUint16LE();
|
|
|
|
Maps[i]._y = mapFile->readUint16LE();
|
|
|
|
Maps[i]._pageNumber = mapFile->readUint16LE();
|
|
|
|
Maps[i]._specialID = mapFile->readUint16LE();
|
|
|
|
Maps[i]._mapFlags = mapFile->readUint32LE();
|
2015-10-14 01:51:18 +03:00
|
|
|
}
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-10-14 01:51:18 +03:00
|
|
|
delete mapFile;
|
2014-10-06 14:50:05 +02:00
|
|
|
}
|
|
|
|
|
2015-12-08 16:53:30 +02:00
|
|
|
void LabEngine::freeMapData() {
|
|
|
|
freeButtonList(&_mapGadgetList);
|
2015-12-06 22:50:41 +02:00
|
|
|
|
2015-10-14 01:51:18 +03:00
|
|
|
delete[] Maps;
|
|
|
|
Maps = NULL;
|
|
|
|
}
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-08 09:46:54 +01:00
|
|
|
/**
|
|
|
|
* Figures out what a room's coordinates should be.
|
|
|
|
*/
|
2015-12-09 06:07:34 +01:00
|
|
|
static void roomCoords(uint16 curRoom, uint16 *x1, uint16 *y1, uint16 *x2, uint16 *y2) {
|
2015-12-03 14:30:32 +02:00
|
|
|
Image *curRoomImg = NULL;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-09 11:22:41 +01:00
|
|
|
switch (Maps[curRoom]._specialID) {
|
2014-10-06 14:50:05 +02:00
|
|
|
case NORMAL:
|
|
|
|
case UPARROWROOM:
|
|
|
|
case DOWNARROWROOM:
|
2015-12-03 14:30:32 +02:00
|
|
|
curRoomImg = Room;
|
2014-10-06 14:50:05 +02:00
|
|
|
break;
|
|
|
|
case BRIDGEROOM:
|
2015-12-03 14:30:32 +02:00
|
|
|
curRoomImg = Bridge;
|
2014-10-06 14:50:05 +02:00
|
|
|
break;
|
|
|
|
case VCORRIDOR:
|
2015-12-03 14:30:32 +02:00
|
|
|
curRoomImg = VRoom;
|
2014-10-06 14:50:05 +02:00
|
|
|
break;
|
|
|
|
case HCORRIDOR:
|
2015-12-03 14:30:32 +02:00
|
|
|
curRoomImg = HRoom;
|
2014-10-06 14:50:05 +02:00
|
|
|
break;
|
2015-12-04 22:52:55 +02:00
|
|
|
default:
|
|
|
|
// Some rooms (like the map) do not have an image
|
|
|
|
break;
|
2014-10-06 14:50:05 +02:00
|
|
|
}
|
2015-12-03 14:30:32 +02:00
|
|
|
|
2015-12-09 11:30:12 +01:00
|
|
|
*x1 = g_lab->_utils->mapScaleX(Maps[curRoom]._x);
|
|
|
|
*y1 = g_lab->_utils->mapScaleY(Maps[curRoom]._y);
|
2015-12-04 22:52:55 +02:00
|
|
|
*x2 = *x1;
|
|
|
|
*y2 = *y1;
|
|
|
|
|
|
|
|
if (curRoomImg) {
|
|
|
|
*x2 += curRoomImg->_width;
|
|
|
|
*y2 += curRoomImg->_height;
|
|
|
|
}
|
2014-10-06 14:50:05 +02:00
|
|
|
}
|
|
|
|
|
2015-12-08 09:46:54 +01:00
|
|
|
/**
|
2015-12-08 17:08:04 +02:00
|
|
|
* Draws a room map.
|
2015-12-08 09:46:54 +01:00
|
|
|
*/
|
2015-12-09 06:07:34 +01:00
|
|
|
static void drawRoomMap(uint16 curRoom, bool drawx) {
|
2014-10-06 14:50:05 +02:00
|
|
|
uint16 x, y, xx, xy, offset;
|
|
|
|
uint32 flags;
|
|
|
|
|
2015-12-09 11:30:12 +01:00
|
|
|
x = g_lab->_utils->mapScaleX(Maps[curRoom]._x);
|
|
|
|
y = g_lab->_utils->mapScaleY(Maps[curRoom]._y);
|
2015-12-09 11:22:41 +01:00
|
|
|
flags = Maps[curRoom]._mapFlags;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-09 11:22:41 +01:00
|
|
|
switch (Maps[curRoom]._specialID) {
|
2014-10-06 14:50:05 +02:00
|
|
|
case NORMAL:
|
|
|
|
case UPARROWROOM:
|
|
|
|
case DOWNARROWROOM:
|
2015-12-09 11:22:41 +01:00
|
|
|
if (Maps[curRoom]._specialID == NORMAL)
|
2015-12-01 21:42:44 +01:00
|
|
|
Room->drawImage(x, y);
|
2015-12-09 11:22:41 +01:00
|
|
|
else if (Maps[curRoom]._specialID == DOWNARROWROOM)
|
2015-12-01 21:42:44 +01:00
|
|
|
DownArrowRoom->drawImage(x, y);
|
2014-10-06 14:50:05 +02:00
|
|
|
else
|
2015-12-01 21:42:44 +01:00
|
|
|
UpArrowRoom->drawImage(x, y);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-02 11:49:01 +01:00
|
|
|
offset = (Room->_width - Path->_width) / 2;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-02 11:49:01 +01:00
|
|
|
if ((NORTHDOOR & flags) && (y >= Path->_height))
|
|
|
|
Path->drawImage(x + offset, y - Path->_height);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (SOUTHDOOR & flags)
|
2015-12-02 11:49:01 +01:00
|
|
|
Path->drawImage(x + offset, y + Room->_height);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-02 11:49:01 +01:00
|
|
|
offset = (Room->_height - Path->_height) / 2;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (EASTDOOR & flags)
|
2015-12-02 11:49:01 +01:00
|
|
|
Path->drawImage(x + Room->_width, y + offset);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (WESTDOOR & flags)
|
2015-12-02 11:49:01 +01:00
|
|
|
Path->drawImage(x - Path->_width, y + offset);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-02 11:49:01 +01:00
|
|
|
xx = x + (Room->_width - XMark->_width) / 2;
|
|
|
|
xy = y + (Room->_height - XMark->_height) / 2;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case BRIDGEROOM:
|
2015-12-01 21:42:44 +01:00
|
|
|
Bridge->drawImage(x, y);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-02 11:49:01 +01:00
|
|
|
xx = x + (Bridge->_width - XMark->_width) / 2;
|
|
|
|
xy = y + (Bridge->_height - XMark->_height) / 2;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case VCORRIDOR:
|
2015-12-01 21:42:44 +01:00
|
|
|
VRoom->drawImage(x, y);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-02 11:49:01 +01:00
|
|
|
offset = (VRoom->_width - Path->_width) / 2;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (NORTHDOOR & flags)
|
2015-12-02 11:49:01 +01:00
|
|
|
Path->drawImage(x + offset, y - Path->_height);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (SOUTHDOOR & flags)
|
2015-12-02 11:49:01 +01:00
|
|
|
Path->drawImage(x + offset, y + VRoom->_height);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-02 11:49:01 +01:00
|
|
|
offset = (Room->_height - Path->_height) / 2;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (EASTDOOR & flags)
|
2015-12-02 11:49:01 +01:00
|
|
|
Path->drawImage(x + VRoom->_width, y + offset);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (WESTDOOR & flags)
|
2015-12-02 11:49:01 +01:00
|
|
|
Path->drawImage(x - Path->_width, y + offset);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (EASTBDOOR & flags)
|
2015-12-02 11:49:01 +01:00
|
|
|
Path->drawImage(x + VRoom->_width, y - offset - Path->_height + VRoom->_height);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (WESTBDOOR & flags)
|
2015-12-02 11:49:01 +01:00
|
|
|
Path->drawImage(x - Path->_width, y - offset - Path->_height + VRoom->_height);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-02 11:49:01 +01:00
|
|
|
offset = (VRoom->_height - Path->_height) / 2;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (EASTMDOOR & flags)
|
2015-12-02 11:49:01 +01:00
|
|
|
Path->drawImage(x + VRoom->_width, y - offset - Path->_height + VRoom->_height);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (WESTMDOOR & flags)
|
2015-12-02 11:49:01 +01:00
|
|
|
Path->drawImage(x - Path->_width, y - offset - Path->_height + VRoom->_height);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-02 11:49:01 +01:00
|
|
|
xx = x + (VRoom->_width - XMark->_width) / 2;
|
|
|
|
xy = y + (VRoom->_height - XMark->_height) / 2;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case HCORRIDOR:
|
2015-12-01 21:42:44 +01:00
|
|
|
HRoom->drawImage(x, y);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-02 11:49:01 +01:00
|
|
|
offset = (Room->_width - Path->_width) / 2;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (NORTHDOOR & flags)
|
2015-12-02 11:49:01 +01:00
|
|
|
Path->drawImage(x + offset, y - Path->_height);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (SOUTHDOOR & flags)
|
2015-12-02 11:49:01 +01:00
|
|
|
Path->drawImage(x + offset, y + Room->_height);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (NORTHRDOOR & flags)
|
2015-12-02 11:49:01 +01:00
|
|
|
Path->drawImage(x - offset - Path->_width + HRoom->_width, y - Path->_height);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (SOUTHRDOOR & flags)
|
2015-12-02 11:49:01 +01:00
|
|
|
Path->drawImage(x - offset - Path->_width + HRoom->_width, y + Room->_height);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-02 11:49:01 +01:00
|
|
|
offset = (HRoom->_width - Path->_width) / 2;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (NORTHMDOOR & flags)
|
2015-12-02 11:49:01 +01:00
|
|
|
Path->drawImage(x - offset - Path->_width + HRoom->_width, y - Path->_height);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (SOUTHMDOOR & flags)
|
2015-12-02 11:49:01 +01:00
|
|
|
Path->drawImage(x - offset - Path->_width + HRoom->_width, y + Room->_height);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-02 11:49:01 +01:00
|
|
|
offset = (Room->_height - Path->_height) / 2;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (EASTDOOR & flags)
|
2015-12-02 11:49:01 +01:00
|
|
|
Path->drawImage(x + HRoom->_width, y + offset);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (WESTDOOR & flags)
|
2015-12-02 11:49:01 +01:00
|
|
|
Path->drawImage(x - Path->_width, y + offset);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-02 11:49:01 +01:00
|
|
|
xx = x + (HRoom->_width - XMark->_width) / 2;
|
|
|
|
xy = y + (HRoom->_height - XMark->_height) / 2;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (drawx)
|
2015-12-01 21:42:44 +01:00
|
|
|
XMark->drawImage(xx, xy);
|
2014-10-06 14:50:05 +02:00
|
|
|
}
|
|
|
|
|
2015-12-08 09:46:54 +01:00
|
|
|
/**
|
|
|
|
* Checks if a floor has been visitted.
|
|
|
|
*/
|
2015-12-09 06:07:34 +01:00
|
|
|
static bool onFloor(uint16 flr) {
|
2015-11-27 23:18:15 +01:00
|
|
|
for (uint16 i = 1; i <= MaxRooms; i++) {
|
2015-12-09 11:22:41 +01:00
|
|
|
if ((Maps[i]._pageNumber == flr) && g_lab->_roomsFound->in(i) && Maps[i]._x)
|
2014-10-06 14:50:05 +02:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2015-12-08 09:46:54 +01:00
|
|
|
/**
|
|
|
|
* Figures out which floor, if any, should be gone to if the up arrow is hit
|
|
|
|
*/
|
2015-12-09 06:07:34 +01:00
|
|
|
static bool getUpFloor(uint16 *flr) {
|
2014-10-06 14:50:05 +02:00
|
|
|
do {
|
2015-12-09 06:07:34 +01:00
|
|
|
if (*flr < kFloorUpper)
|
|
|
|
(*flr)++;
|
2014-10-06 14:50:05 +02:00
|
|
|
else {
|
2015-12-09 06:07:34 +01:00
|
|
|
*flr = kFloorCarnival + 1;
|
|
|
|
return false;
|
2014-10-06 14:50:05 +02:00
|
|
|
}
|
2015-12-09 06:07:34 +01:00
|
|
|
} while ((!onFloor(*flr)) && (*flr <= kFloorCarnival));
|
|
|
|
|
|
|
|
return true;
|
2014-10-06 14:50:05 +02:00
|
|
|
}
|
|
|
|
|
2015-12-08 09:46:54 +01:00
|
|
|
/**
|
|
|
|
* Figures out which floor, if any, should be gone to if the down arrow is
|
|
|
|
* hit.
|
|
|
|
*/
|
2015-12-09 06:07:34 +01:00
|
|
|
static bool getDownFloor(uint16 *flr) {
|
2014-10-06 14:50:05 +02:00
|
|
|
do {
|
2015-12-09 06:07:34 +01:00
|
|
|
if ((*flr == kFloorLower) || (*flr == 0)) {
|
|
|
|
*flr = 0;
|
|
|
|
return false;
|
|
|
|
} else if (*flr > kFloorUpper) {
|
2015-10-14 01:51:18 +03:00
|
|
|
// Labyrinth specific code
|
2015-12-09 06:07:34 +01:00
|
|
|
if (*flr == kFloorHedgeMaze)
|
|
|
|
*flr = kFloorUpper;
|
|
|
|
else if ((*flr == kFloorCarnival) || (*flr == kFloorMedMaze))
|
|
|
|
*flr = kFloorMiddle;
|
|
|
|
else if (*flr == kFloorSurMaze)
|
|
|
|
*flr = kFloorLower;
|
2014-10-06 14:50:05 +02:00
|
|
|
else {
|
2015-12-09 06:07:34 +01:00
|
|
|
*flr = 0;
|
|
|
|
return false;
|
2014-10-06 14:50:05 +02:00
|
|
|
}
|
|
|
|
} else
|
2015-12-09 06:07:34 +01:00
|
|
|
(*flr)--;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-09 06:07:34 +01:00
|
|
|
} while ((!onFloor(*flr)) && *flr);
|
|
|
|
|
|
|
|
return true;
|
2014-10-06 14:50:05 +02:00
|
|
|
}
|
|
|
|
|
2015-12-08 09:46:54 +01:00
|
|
|
/**
|
|
|
|
* Draws the map
|
|
|
|
*/
|
2015-12-09 06:07:34 +01:00
|
|
|
void LabEngine::drawMap(uint16 curRoom, uint16 curMsg, uint16 flr, bool fadeout, bool fadein) {
|
2015-11-29 18:10:06 +01:00
|
|
|
_event->mouseHide();
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (fadeout)
|
2015-12-06 18:16:26 +01:00
|
|
|
_graphics->fade(false, 0);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-04 13:32:08 +01:00
|
|
|
_graphics->setAPen(0);
|
2015-12-06 14:36:49 +01:00
|
|
|
_graphics->rectFill(0, 0, _graphics->_screenWidth - 1, _graphics->_screenHeight - 1);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-01 21:42:44 +01:00
|
|
|
Map->drawImage(0, 0);
|
2015-12-08 16:53:30 +02:00
|
|
|
drawGadgetList(&_mapGadgetList);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-11-27 23:18:15 +01:00
|
|
|
for (uint16 i = 1; i <= MaxRooms; i++) {
|
2015-12-09 11:22:41 +01:00
|
|
|
if ((Maps[i]._pageNumber == flr) && _roomsFound->in(i) && Maps[i]._x) {
|
2015-12-09 06:07:34 +01:00
|
|
|
drawRoomMap(i, (bool)(i == curRoom));
|
2015-11-30 01:17:05 +01:00
|
|
|
_music->updateMusic();
|
2014-10-06 14:50:05 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-12-08 11:27:34 +01:00
|
|
|
// Makes sure the X is drawn in corridors
|
|
|
|
// NOTE: this here on purpose just in case there's some weird
|
|
|
|
// condition, like the surreal maze where there are no rooms
|
2015-12-09 11:22:41 +01:00
|
|
|
if ((Maps[curRoom]._pageNumber == flr) && _roomsFound->in(curRoom) && Maps[curRoom]._x)
|
2015-12-09 06:07:34 +01:00
|
|
|
drawRoomMap(curRoom, true);
|
|
|
|
|
|
|
|
uint16 tempfloor = flr;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-09 06:07:34 +01:00
|
|
|
bool noOverlay = getUpFloor(&tempfloor);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-08 16:53:30 +02:00
|
|
|
Gadget *upGadget = _event->getGadget(1);
|
|
|
|
Gadget *downGadget = _event->getGadget(2);
|
|
|
|
|
2015-12-03 14:22:04 +02:00
|
|
|
if (noOverlay)
|
2015-12-08 16:53:30 +02:00
|
|
|
enableGadget(upGadget);
|
2014-10-06 14:50:05 +02:00
|
|
|
else
|
2015-12-08 16:53:30 +02:00
|
|
|
disableGadget(upGadget, 12);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-09 06:07:34 +01:00
|
|
|
tempfloor = flr;
|
|
|
|
noOverlay = getDownFloor(&tempfloor);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-03 14:22:04 +02:00
|
|
|
if (noOverlay)
|
2015-12-08 16:53:30 +02:00
|
|
|
enableGadget(downGadget);
|
2014-10-06 14:50:05 +02:00
|
|
|
else
|
2015-12-08 16:53:30 +02:00
|
|
|
disableGadget(downGadget, 12);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-09 06:07:34 +01:00
|
|
|
char *sptr;
|
|
|
|
|
2015-10-14 01:51:18 +03:00
|
|
|
// Labyrinth specific code
|
2015-12-09 06:07:34 +01:00
|
|
|
if (flr == kFloorLower) {
|
2015-12-08 17:08:04 +02:00
|
|
|
if (onFloor(kFloorSurMaze))
|
2015-12-09 11:30:12 +01:00
|
|
|
Maze->drawImage(_utils->mapScaleX(538), _utils->mapScaleY(277));
|
2015-12-09 06:07:34 +01:00
|
|
|
} else if (flr == kFloorMiddle) {
|
2015-12-08 17:08:04 +02:00
|
|
|
if (onFloor(kFloorCarnival))
|
2015-12-09 11:30:12 +01:00
|
|
|
Maze->drawImage(_utils->mapScaleX(358), _utils->mapScaleY(72));
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-08 17:08:04 +02:00
|
|
|
if (onFloor(kFloorMedMaze))
|
2015-12-09 11:30:12 +01:00
|
|
|
Maze->drawImage(_utils->mapScaleX(557), _utils->mapScaleY(325));
|
2015-12-09 06:07:34 +01:00
|
|
|
} else if (flr == kFloorUpper) {
|
2015-12-08 17:08:04 +02:00
|
|
|
if (onFloor(kFloorHedgeMaze))
|
2015-12-09 11:30:12 +01:00
|
|
|
HugeMaze->drawImage(_utils->mapScaleX(524), _utils->mapScaleY(97));
|
2015-12-09 06:07:34 +01:00
|
|
|
} else if (flr == kFloorSurMaze) {
|
2015-11-30 00:34:43 +01:00
|
|
|
sptr = (char *)_resource->getStaticText(kTextSurmazeMessage).c_str();
|
2015-12-09 11:30:12 +01:00
|
|
|
_graphics->flowText(_msgFont, 0, 7, 0, true, true, true, true, _utils->mapScaleX(360), 0, _utils->mapScaleX(660), _utils->mapScaleY(450), sptr);
|
2014-10-06 14:50:05 +02:00
|
|
|
}
|
|
|
|
|
2015-12-09 06:07:34 +01:00
|
|
|
if (flr >= kFloorLower && flr <= kFloorCarnival) {
|
|
|
|
sptr = (char *)_resource->getStaticText(flr - 1).c_str();
|
2015-12-05 22:20:26 +02:00
|
|
|
_graphics->flowTextScaled(_msgFont, 0, 5, 3, true, true, true, true, 14, 75, 134, 97, sptr);
|
2015-12-05 22:35:38 +02:00
|
|
|
}
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-09 06:07:34 +01:00
|
|
|
if ((sptr = _rooms[curMsg]._roomMsg))
|
2015-12-05 22:20:26 +02:00
|
|
|
_graphics->flowTextScaled(_msgFont, 0, 5, 3, true, true, true, true, 14, 148, 134, 186, sptr);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (fadein)
|
2015-12-06 18:16:26 +01:00
|
|
|
_graphics->fade(true, 0);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-11-29 18:10:06 +01:00
|
|
|
_event->mouseShow();
|
2014-10-06 14:50:05 +02:00
|
|
|
}
|
|
|
|
|
2015-12-08 09:46:54 +01:00
|
|
|
/**
|
|
|
|
* Processes the map.
|
|
|
|
*/
|
2015-12-09 06:07:34 +01:00
|
|
|
void LabEngine::processMap(uint16 curRoom) {
|
|
|
|
uint32 place = 1;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-09 06:07:34 +01:00
|
|
|
uint16 curMsg = curRoom;
|
2015-12-09 11:22:41 +01:00
|
|
|
uint16 curFloor = Maps[curRoom]._pageNumber;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
while (1) {
|
2015-12-08 11:27:34 +01:00
|
|
|
// Make sure we check the music at least after every message
|
|
|
|
_music->updateMusic();
|
2015-12-09 06:07:34 +01:00
|
|
|
IntuiMessage *msg = getMsg();
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-09 06:07:34 +01:00
|
|
|
if (msg == NULL) {
|
2015-11-30 01:17:05 +01:00
|
|
|
_music->updateMusic();
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-09 06:07:34 +01:00
|
|
|
byte newcolor[3];
|
|
|
|
|
2014-10-06 14:50:05 +02:00
|
|
|
if (place <= 14) {
|
|
|
|
newcolor[0] = 14 << 2;
|
|
|
|
newcolor[1] = place << 2;
|
|
|
|
newcolor[2] = newcolor[1];
|
|
|
|
} else {
|
|
|
|
newcolor[0] = 14 << 2;
|
|
|
|
newcolor[1] = (28 - place) << 2;
|
|
|
|
newcolor[2] = newcolor[1];
|
|
|
|
}
|
|
|
|
|
2015-11-29 23:34:35 +01:00
|
|
|
waitTOF();
|
2015-12-06 14:36:49 +01:00
|
|
|
_graphics->writeColorRegs(newcolor, 1, 1);
|
2015-11-29 18:10:06 +01:00
|
|
|
_event->updateMouse();
|
2015-11-29 23:34:35 +01:00
|
|
|
waitTOF();
|
2015-11-29 18:10:06 +01:00
|
|
|
_event->updateMouse();
|
2015-11-29 23:34:35 +01:00
|
|
|
waitTOF();
|
2015-11-29 18:10:06 +01:00
|
|
|
_event->updateMouse();
|
2015-11-29 23:34:35 +01:00
|
|
|
waitTOF();
|
2015-11-29 18:10:06 +01:00
|
|
|
_event->updateMouse();
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
place++;
|
|
|
|
|
|
|
|
if (place >= 28)
|
|
|
|
place = 1;
|
|
|
|
|
|
|
|
} else {
|
2015-12-09 06:07:34 +01:00
|
|
|
uint32 msgClass = msg->_msgClass;
|
|
|
|
uint16 msgCode = msg->_code;
|
|
|
|
uint16 gadgetID = msg->_gadgetID;
|
|
|
|
uint16 qualifier = msg->_qualifier;
|
|
|
|
uint16 mouseX = msg->_mouseX;
|
|
|
|
uint16 mouseY = msg->_mouseY;
|
|
|
|
|
|
|
|
if (((msgClass == MOUSEBUTTONS) && (IEQUALIFIER_RBUTTON & qualifier)) || ((msgClass == RAWKEY) && (msgCode == 27)))
|
2014-10-06 14:50:05 +02:00
|
|
|
return;
|
|
|
|
|
2015-12-09 06:07:34 +01:00
|
|
|
if (msgClass == GADGETUP) {
|
|
|
|
if (gadgetID == 0) {
|
2015-12-08 11:27:34 +01:00
|
|
|
// Quit menu button
|
2014-10-06 14:50:05 +02:00
|
|
|
return;
|
2015-12-09 06:07:34 +01:00
|
|
|
} else if (gadgetID == 1) {
|
2015-12-08 11:27:34 +01:00
|
|
|
// Up arrow
|
2015-12-09 06:07:34 +01:00
|
|
|
uint16 oldFloor = curFloor;
|
|
|
|
bool drawmap = getUpFloor(&curFloor);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (drawmap) {
|
2015-12-06 18:16:26 +01:00
|
|
|
_graphics->fade(false, 0);
|
2015-12-09 06:07:34 +01:00
|
|
|
drawMap(curRoom, curMsg, curFloor, false, false);
|
2015-12-06 18:16:26 +01:00
|
|
|
_graphics->fade(true, 0);
|
2014-10-06 14:50:05 +02:00
|
|
|
} else
|
2015-12-09 06:07:34 +01:00
|
|
|
curFloor = oldFloor;
|
|
|
|
} else if (gadgetID == 2) {
|
2015-12-08 11:27:34 +01:00
|
|
|
// Down arrow
|
2015-12-09 06:07:34 +01:00
|
|
|
uint16 oldFloor = curFloor;
|
|
|
|
bool drawmap = getDownFloor(&curFloor);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
|
|
|
if (drawmap) {
|
2015-12-06 18:16:26 +01:00
|
|
|
_graphics->fade(false, 0);
|
2015-12-09 06:07:34 +01:00
|
|
|
drawMap(curRoom, curMsg, curFloor, false, false);
|
2015-12-06 18:16:26 +01:00
|
|
|
_graphics->fade(true, 0);
|
2014-10-06 14:50:05 +02:00
|
|
|
} else
|
2015-12-09 06:07:34 +01:00
|
|
|
curFloor = oldFloor;
|
2014-10-06 14:50:05 +02:00
|
|
|
}
|
2015-12-09 06:07:34 +01:00
|
|
|
} else if ((msgClass == MOUSEBUTTONS) && (IEQUALIFIER_LEFTBUTTON & qualifier)) {
|
2015-12-09 11:30:12 +01:00
|
|
|
if ((curFloor == kFloorLower) && (mouseX >= _utils->mapScaleX(538)) && (mouseY >= _utils->mapScaleY(277))
|
|
|
|
&& (mouseX <= _utils->mapScaleX(633)) && (mouseY <= _utils->mapScaleY(352))
|
2015-12-08 17:08:04 +02:00
|
|
|
&& onFloor(kFloorSurMaze)) {
|
2015-12-09 06:07:34 +01:00
|
|
|
curFloor = kFloorSurMaze;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-06 18:16:26 +01:00
|
|
|
_graphics->fade(false, 0);
|
2015-12-09 06:07:34 +01:00
|
|
|
drawMap(curRoom, curMsg, curFloor, false, false);
|
2015-12-06 18:16:26 +01:00
|
|
|
_graphics->fade(true, 0);
|
2015-12-09 11:30:12 +01:00
|
|
|
} else if ((curFloor == kFloorMiddle) && (mouseX >= _utils->mapScaleX(358)) && (mouseY >= _utils->mapScaleY(71))
|
|
|
|
&& (mouseX <= _utils->mapScaleX(452)) && (mouseY <= _utils->mapScaleY(147))
|
2015-12-08 17:08:04 +02:00
|
|
|
&& onFloor(kFloorCarnival)) {
|
2015-12-09 06:07:34 +01:00
|
|
|
curFloor = kFloorCarnival;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-06 18:16:26 +01:00
|
|
|
_graphics->fade(false, 0);
|
2015-12-09 06:07:34 +01:00
|
|
|
drawMap(curRoom, curMsg, curFloor, false, false);
|
2015-12-06 18:16:26 +01:00
|
|
|
_graphics->fade(true, 0);
|
2015-12-09 11:30:12 +01:00
|
|
|
} else if ((curFloor == kFloorMiddle) && (mouseX >= _utils->mapScaleX(557)) && (mouseY >= _utils->mapScaleY(325))
|
|
|
|
&& (mouseX <= _utils->mapScaleX(653)) && (mouseY <= _utils->mapScaleY(401))
|
2015-12-08 17:08:04 +02:00
|
|
|
&& onFloor(kFloorMedMaze)) {
|
2015-12-09 06:07:34 +01:00
|
|
|
curFloor = kFloorMedMaze;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-06 18:16:26 +01:00
|
|
|
_graphics->fade(false, 0);
|
2015-12-09 06:07:34 +01:00
|
|
|
drawMap(curRoom, curMsg, curFloor, false, false);
|
2015-12-06 18:16:26 +01:00
|
|
|
_graphics->fade(true, 0);
|
2015-12-09 11:30:12 +01:00
|
|
|
} else if ((curFloor == kFloorUpper) && (mouseX >= _utils->mapScaleX(524)) && (mouseY >= _utils->mapScaleY(97))
|
|
|
|
&& (mouseX <= _utils->mapScaleX(645)) && (mouseY <= _utils->mapScaleY(207))
|
2015-12-08 17:08:04 +02:00
|
|
|
&& onFloor(kFloorHedgeMaze)) {
|
2015-12-09 06:07:34 +01:00
|
|
|
curFloor = kFloorHedgeMaze;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-06 18:16:26 +01:00
|
|
|
_graphics->fade(false, 0);
|
2015-12-09 06:07:34 +01:00
|
|
|
drawMap(curRoom, curMsg, curFloor, false, false);
|
2015-12-06 18:16:26 +01:00
|
|
|
_graphics->fade(true, 0);
|
2015-12-09 11:30:12 +01:00
|
|
|
} else if (mouseX > _utils->mapScaleX(314)) {
|
2015-12-09 06:07:34 +01:00
|
|
|
uint16 oldMsg = curMsg;
|
|
|
|
uint16 x1, y1, x2, y2;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-11-27 23:18:15 +01:00
|
|
|
for (uint16 i = 1; i <= MaxRooms; i++) {
|
2015-12-04 02:10:55 +02:00
|
|
|
roomCoords(i, &x1, &y1, &x2, &y2);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-09 11:22:41 +01:00
|
|
|
if ((Maps[i]._pageNumber == curFloor)
|
2015-12-08 09:19:00 +01:00
|
|
|
&& _roomsFound->in(i)
|
2015-12-09 06:07:34 +01:00
|
|
|
&& (mouseX >= x1) && (mouseX <= x2)
|
|
|
|
&& (mouseY >= y1) && (mouseY <= y2)) {
|
|
|
|
curMsg = i;
|
2014-10-06 14:50:05 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-12-09 06:07:34 +01:00
|
|
|
if (oldMsg != curMsg) {
|
|
|
|
if (_rooms[curMsg]._roomMsg == nullptr)
|
|
|
|
_resource->readViews(curMsg);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-09 06:07:34 +01:00
|
|
|
char *sptr;
|
|
|
|
if ((sptr = _rooms[curMsg]._roomMsg)) {
|
2015-11-29 18:10:06 +01:00
|
|
|
_event->mouseHide();
|
2015-12-04 13:32:08 +01:00
|
|
|
_graphics->setAPen(3);
|
2015-12-05 22:20:26 +02:00
|
|
|
_graphics->rectFillScaled(13, 148, 135, 186);
|
|
|
|
_graphics->flowTextScaled(_msgFont, 0, 5, 3, true, true, true, true, 14, 148, 134, 186, sptr);
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-09 11:22:41 +01:00
|
|
|
if (Maps[oldMsg]._pageNumber == curFloor)
|
2015-12-09 06:07:34 +01:00
|
|
|
drawRoomMap(oldMsg, (bool)(oldMsg == curRoom));
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-09 06:07:34 +01:00
|
|
|
roomCoords(curMsg, &x1, &y1, &x2, &y2);
|
2014-10-06 14:50:05 +02:00
|
|
|
x1 = (x1 + x2) / 2;
|
|
|
|
y1 = (y1 + y2) / 2;
|
|
|
|
|
2015-12-09 11:22:41 +01:00
|
|
|
if ((curMsg != curRoom) && (Maps[curMsg]._pageNumber == curFloor)) {
|
2015-12-04 13:32:08 +01:00
|
|
|
_graphics->setAPen(1);
|
|
|
|
_graphics->rectFill(x1 - 1, y1, x1, y1);
|
2014-10-06 14:50:05 +02:00
|
|
|
}
|
|
|
|
|
2015-11-29 18:10:06 +01:00
|
|
|
_event->mouseShow();
|
2014-10-06 14:50:05 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-12-04 13:32:08 +01:00
|
|
|
_graphics->screenUpdate();
|
2014-10-06 14:50:05 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-12-08 09:46:54 +01:00
|
|
|
/**
|
|
|
|
* Does the map processing.
|
|
|
|
*/
|
2015-12-09 06:07:34 +01:00
|
|
|
void LabEngine::doMap(uint16 curRoom) {
|
|
|
|
static uint16 amigaMapPalette[] = {
|
2015-12-06 18:16:26 +01:00
|
|
|
0x0BA8, 0x0C11, 0x0A74, 0x0076,
|
|
|
|
0x0A96, 0x0DCB, 0x0CCA, 0x0222,
|
|
|
|
0x0444, 0x0555, 0x0777, 0x0999,
|
|
|
|
0x0AAA, 0x0ED0, 0x0EEE, 0x0694
|
|
|
|
};
|
|
|
|
|
2015-12-09 06:07:34 +01:00
|
|
|
_graphics->FadePalette = amigaMapPalette;
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-11-30 01:17:05 +01:00
|
|
|
_music->updateMusic();
|
2014-10-06 14:50:05 +02:00
|
|
|
loadMapData();
|
2015-12-04 13:32:08 +01:00
|
|
|
_graphics->blackAllScreen();
|
2014-10-06 14:50:05 +02:00
|
|
|
|
2015-12-06 17:24:25 +01:00
|
|
|
if (_direction == NORTH)
|
2014-10-06 14:50:05 +02:00
|
|
|
XMark = MapNorth;
|
2015-12-06 17:24:25 +01:00
|
|
|
else if (_direction == SOUTH)
|
2014-10-06 14:50:05 +02:00
|
|
|
XMark = MapSouth;
|
2015-12-06 17:24:25 +01:00
|
|
|
else if (_direction == EAST)
|
2014-10-06 14:50:05 +02:00
|
|
|
XMark = MapEast;
|
2015-12-06 17:24:25 +01:00
|
|
|
else if (_direction == WEST)
|
2014-10-06 14:50:05 +02:00
|
|
|
XMark = MapWest;
|
|
|
|
|
2015-12-08 16:53:30 +02:00
|
|
|
_event->attachGadgetList(&_mapGadgetList);
|
2015-12-09 11:22:41 +01:00
|
|
|
drawMap(curRoom, curRoom, Maps[curRoom]._pageNumber, false, true);
|
2015-11-29 18:10:06 +01:00
|
|
|
_event->mouseShow();
|
2015-12-04 13:32:08 +01:00
|
|
|
_graphics->screenUpdate();
|
2015-12-09 06:07:34 +01:00
|
|
|
processMap(curRoom);
|
2015-11-29 18:10:06 +01:00
|
|
|
_event->attachGadgetList(NULL);
|
2015-12-06 18:16:26 +01:00
|
|
|
_graphics->fade(false, 0);
|
2015-12-04 13:32:08 +01:00
|
|
|
_graphics->blackAllScreen();
|
2015-11-29 18:10:06 +01:00
|
|
|
_event->mouseHide();
|
2015-12-04 13:32:08 +01:00
|
|
|
_graphics->setAPen(0);
|
2015-12-06 14:36:49 +01:00
|
|
|
_graphics->rectFill(0, 0, _graphics->_screenWidth - 1, _graphics->_screenHeight - 1);
|
2015-10-14 01:51:18 +03:00
|
|
|
freeMapData();
|
2015-12-04 13:32:08 +01:00
|
|
|
_graphics->blackAllScreen();
|
2015-11-29 18:10:06 +01:00
|
|
|
_event->mouseShow();
|
2015-12-04 13:32:08 +01:00
|
|
|
_graphics->screenUpdate();
|
2014-10-06 14:50:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
} // End of namespace Lab
|