home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / thx / demos / shootout / build / options.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-05  |  773 b   |  46 lines

  1. // --------- options.h
  2.  
  3. #ifndef OPTIONS_H
  4. #define OPTIONS_H
  5.  
  6. #include "shootout.h"
  7. #include "pointer.h"
  8.  
  9. class Buttons;
  10.  
  11. class Options : public SceneDirector    {
  12.     void OnUp();
  13.     void OnDown();
  14.     void OnPlus();
  15.     void OnMinus();
  16.     void display();
  17.     Digit *currdigit(int& lo, int &hi);
  18.     const Type_info& get_next_director()
  19.         { return typeid(Menu); }
  20. protected:
  21.     DECLARE_CUELIST
  22. public:
  23.     Options();
  24.     ~Options();
  25.     Digit *fletchers;
  26.     Digit *aim;
  27.     Digit *resurrections;
  28.     Pointer *pointer;
  29.     Buttons *buttons;
  30. };
  31.  
  32. class Buttons : public Player {
  33.     enum Mode { up, plus, minus, wait };
  34.     Mode mode;
  35.     void update_position();
  36.     friend class Options;
  37. public:
  38.     Buttons() : Player("options.gfx")
  39.         { mode = up; }
  40. };
  41.  
  42. extern Options *options;
  43.  
  44. #endif
  45.  
  46.