added support for a ton of stuff, fixed lots
[riven-wahrk.git] / src / Hotspot.h
blob4635c556e4e1e3dd2cf1169cf188f8828a38cc63
2 #ifndef _HOTSPOT_H_
3 #define _HOTSPOT_H_
5 #include <vector>
6 #include <map>
8 using namespace std;
10 #include "File.h"
11 #include "Script.h"
13 class Game;
14 class Scene;
16 class HsptRecord {
18 friend class Scene;
20 int16_t nameRec, left, top, right, bottom;
21 uint16_t mouseCursor, index;
22 bool isZip, isEnabled;
24 Script *script;
26 int length;
28 public:
29 HsptRecord (File *file, int addr, Game *game);
31 int getLength () {
32 return length;
35 int getIndex () {
36 return index;
39 bool isInside (int16_t x, int16_t y) {
40 if ((x > left) && (x < right))
41 if ((y < top) && (y > bottom))
42 return true;
43 return false;
50 class Hotspot {
52 public:
54 map<int,HsptRecord> records;
56 Hotspot (Game *game, int id);
59 #endif