25#ifndef PEGASUS_HOTSPOT_H
26#define PEGASUS_HOTSPOT_H
28#include "common/list.h"
29#include "common/rect.h"
31#include "pegasus/constants.h"
32#include "pegasus/types.h"
33#include "pegasus/util.h"
63 void moveTo(CoordType h, CoordType v);
65 void translate(CoordType h, CoordType v);
67 void getCenter(CoordType &h, CoordType &v)
const;
90 void setArea(
const Region ®ion) { _spotArea = region; }
92 void setArea(
const CoordType,
const CoordType,
const CoordType,
const CoordType);
94 void getArea(
Region &)
const;
96 void getCenter(CoordType&, CoordType&)
const;
98 void moveSpotTo(
const CoordType,
const CoordType);
100 void moveSpot(
const CoordType,
const CoordType);
107 bool isSpotActive()
const;
109 HotSpotFlags getHotspotFlags()
const;
110 void setHotspotFlags(
const HotSpotFlags);
111 void setMaskedHotspotFlags(
const HotSpotFlags flags,
const HotSpotFlags mask);
115 HotSpotFlags _spotFlags;
124 void deleteHotspots();
128 Hotspot *findHotspotByID(
const HotSpotID);
129 Hotspot *findHotspotByMask(
const HotSpotFlags);
131 void activateMaskedHotspots(
const HotSpotFlags = kNoHotSpotFlags);
132 void deactivateAllHotspots();
133 void deactivateMaskedHotspots(
const HotSpotFlags);
135 void activateOneHotspot(
const HotSpotID);
136 void deactivateOneHotspot(
const HotSpotID);
138 void removeOneHotspot(
const HotSpotID);
139 void removeMaskedHotspots(
const HotSpotFlags = kNoHotSpotFlags);
141 void setHotspotRect(
const HotSpotID,
const Common::Rect&);
147#define g_allHotspots g_vm->getAllHotspots()
Definition: hotspot.h:119
Definition: algorithm.h:29
Definition: list_intern.h:54