24 enum ButtonState
{ But1Press
, But2Press
, But3Press
};
30 wEvent(EvType t
,void *idata
=0) { type
=t
;data
=idata
;};
39 //Basic class of all game objects
45 char object_name
[GEO_NAME
+1];
48 WellObject() { shown
=false; geo
=0; object_name
[0]=0;};
49 virtual bool process_event(wEvent
)=0;
50 virtual void show() { shown
=true;};
51 virtual bool show_by_call(wEvent
) { show(); return true;};
52 virtual void hide() { shown
=false;};
53 virtual bool hide_by_call(wEvent
) { hide(); return true;};
54 virtual void redraw() {};
55 virtual bool redraw_by_call(wEvent
) { redraw(); return true;};
61 bool (WellObject::*method
)(wEvent
);
64 ObjectCaller() { object
=0; method
=0;};
65 ObjectCaller(WellObject
* o
,bool (WellObject::*m
)(wEvent
)) { object
=o
; method
=m
;};
70 return (object
->*method
)(ev
);