From 1c283507ee0dab8f960bdbe249f837a95c4b6e2b Mon Sep 17 00:00:00 2001 From: Strangerke Date: Mon, 19 Mar 2012 07:44:56 +0100 Subject: MORTEVIELLE: Some more renaming, introduce MouseHandler --- engines/mortevielle/mouse.h | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) (limited to 'engines/mortevielle/mouse.h') diff --git a/engines/mortevielle/mouse.h b/engines/mortevielle/mouse.h index 532644a255..e9cc8af7c0 100644 --- a/engines/mortevielle/mouse.h +++ b/engines/mortevielle/mouse.h @@ -28,24 +28,30 @@ #ifndef MORTEVIELLE_MOUSE_H #define MORTEVIELLE_MOUSE_H +#include "mortevielle/var_mor.h" + namespace Mortevielle { -extern bool int_m; - -extern int m_show, - x_s, - y_s, - p_o_s, - mouse_shwn; - -void initMouse(); -//extern void change_mouse(int t); -//extern void dessine_souris(int xf, int yf); -extern void hideMouse(); -extern void showMouse(); -extern void setMousePos(int x, int y); -extern void getMousePos_(int &x, int &y, int &c); -extern void moveMouse(bool &funct, char &key); +class MouseHandler { +protected: + int s_s[12][6]; +public: + bool int_m; + + int m_show; + int x_s; + int y_s; + int p_o_s; + int mouse_shwn; + + void initMouse(); + void hideMouse(); + void showMouse(); + void setMousePos(int x, int y); + void getMousePos_(int &x, int &y, int &c); + void moveMouse(bool &funct, char &key); + bool isMouseIn(rectangle r); +}; } // End of namespace Mortevielle #endif -- cgit v1.2.3