NXEngine v1.0.0.5
[NXEngine.git] / pause / options.h
blob5570867c4843bbcbd30067f119120487ca7ab57d
2 #ifndef _OPTIONS_H
3 #define _OPTIONS_H
5 namespace Options
7 // class for something like a dialog box that can hold the focus.
8 // there is a stack of them. everyone in the stack is drawn,
9 // and the topmost one receives HandleKey events.
10 class FocusHolder
12 public:
13 virtual ~FocusHolder() { }
15 virtual void Draw() = 0;
16 virtual void RunInput() = 0;
20 class FocusStack : public BList
22 public:
23 FocusHolder *ItemAt(int index) { return (FocusHolder *)BList::ItemAt(index); }
27 void init_objects();
28 void close_objects();
29 void run_and_draw_objects(void);
30 Object *create_object(int x, int y, int type);
32 }; // end namespace
35 bool options_init(int param);
36 void options_tick(void);
37 void options_close(void);
39 #endif