aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/vmenu.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cge/vmenu.h')
-rw-r--r--engines/cge/vmenu.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/engines/cge/vmenu.h b/engines/cge/vmenu.h
index ecec9d51b5..61645d2c55 100644
--- a/engines/cge/vmenu.h
+++ b/engines/cge/vmenu.h
@@ -38,13 +38,15 @@ namespace CGE {
typedef struct {
char *Text;
- void (* Proc)(void);
+ void (CGEEngine::*Proc)();
} CHOICE;
class MENU_BAR : public TALK {
public:
- MENU_BAR(uint16 w);
+ MENU_BAR(CGEEngine *vm, uint16 w);
+private:
+ CGEEngine *_vm;
};
@@ -55,9 +57,11 @@ public:
static VMENU *Addr;
static int Recent;
MENU_BAR *Bar;
- VMENU(CHOICE *list, int x, int y);
- ~VMENU(void);
+ VMENU(CGEEngine *vm, CHOICE *list, int x, int y);
+ ~VMENU();
void Touch(uint16 mask, int x, int y);
+private:
+ CGEEngine *_vm;
};
} // End of namespace CGE