diff options
Diffstat (limited to 'engines/bladerunner/regions.h')
-rw-r--r-- | engines/bladerunner/regions.h | 54 |
1 files changed, 30 insertions, 24 deletions
diff --git a/engines/bladerunner/regions.h b/engines/bladerunner/regions.h index e92e812714..8a65aed5a4 100644 --- a/engines/bladerunner/regions.h +++ b/engines/bladerunner/regions.h @@ -27,29 +27,35 @@ #include "common/rect.h" - namespace BladeRunner { - struct Region - { - Common::Rect _rectangle; - int _type; - int _present; - }; - - class Regions - { - private: - Region* _regions; - bool _enabled; - public: - Regions(); - ~Regions(); - - bool add(int index, Common::Rect rect, int type); - bool remove(int index); - void clear(); - - void setEnabled(bool enabled); - }; -} + +struct Region +{ + Common::Rect _rectangle; + int _type; + int _present; +}; + +class Regions +{ +private: + Region* _regions; + bool _enabled; +public: + Regions(); + ~Regions(); + + void clear(); + bool add(int index, Common::Rect rect, int type); + bool remove(int index); + + int getTypeAtXY(int x, int y); + int getRegionAtXY(int x, int y); + + void setEnabled(bool enabled); + void enable(); +}; + +} // End of namespace BladeRunner + #endif |