2008-07-03 10:10:29 +00: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.
|
|
|
|
*
|
2021-12-26 18:47:58 +01:00
|
|
|
* 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 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
2008-07-03 10:10:29 +00:00
|
|
|
*
|
|
|
|
* 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
|
2021-12-26 18:47:58 +01:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2008-07-03 10:10:29 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef COMMON_IMAGEMAP_H
|
|
|
|
#define COMMON_IMAGEMAP_H
|
|
|
|
|
2011-05-31 00:35:27 +02:00
|
|
|
#include "common/scummsys.h"
|
|
|
|
|
2008-09-30 13:51:01 +00:00
|
|
|
#ifdef ENABLE_VKEYBD
|
|
|
|
|
2008-07-07 21:10:58 +00:00
|
|
|
#include "common/hashmap.h"
|
|
|
|
#include "common/hash-str.h"
|
2008-07-03 10:10:29 +00:00
|
|
|
|
|
|
|
namespace Common {
|
|
|
|
|
2009-01-20 23:19:42 +00:00
|
|
|
struct Polygon;
|
|
|
|
|
2008-07-03 10:10:29 +00:00
|
|
|
class ImageMap {
|
|
|
|
public:
|
2008-07-07 21:10:58 +00:00
|
|
|
~ImageMap();
|
2009-05-24 15:17:42 +00:00
|
|
|
|
2012-01-03 01:25:16 +01:00
|
|
|
Polygon *createArea(const String &id);
|
|
|
|
void removeArea(const String &id);
|
2008-07-09 11:30:49 +00:00
|
|
|
void removeAllAreas();
|
2008-07-07 21:10:58 +00:00
|
|
|
String findMapArea(int16 x, int16 y);
|
2008-07-03 10:10:29 +00:00
|
|
|
|
|
|
|
protected:
|
2012-01-03 01:47:31 +01:00
|
|
|
typedef HashMap<String, Polygon *> AreaMap;
|
|
|
|
AreaMap _areas;
|
2008-07-03 10:10:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // End of namespace Common
|
|
|
|
|
2008-09-30 13:51:01 +00:00
|
|
|
#endif // #ifdef ENABLE_VKEYBD
|
|
|
|
|
|
|
|
#endif // #ifndef COMMON_IMAGEMAP_H
|