1 /* ResidualVM - A 3D game interpreter 2 * 3 * ResidualVM is the legal property of its developers, whose names 4 * are too numerous to list here. Please refer to the COPYRIGHT 5 * file distributed with this source distribution. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 */ 22 23 #ifndef GRIM_HOTSPOT_H 24 #define GRIM_HOTSPOT_H 25 26 #include "common/endian.h" 27 28 #include "engines/grim/pool.h" 29 30 #include "math/rect2d.h" 31 32 namespace Grim { 33 34 35 class Hotspot : public PoolObject<Hotspot> { 36 public: 37 Hotspot(const Common::String &name, int x, int y, int width, int height); 38 ~Hotspot(); 39 40 getStaticTag()41 static int32 getStaticTag() { return MKTAG('H','O','T','S'); } 42 43 //private: 44 Common::String _name; 45 int _x; 46 int _y; 47 int _width; 48 int _height; 49 Math::Rect2d _rect; 50 }; 51 52 } 53 54 #endif 55