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

  1. // ---------- pointer.h
  2.  
  3. #ifndef POINTER_H
  4. #define POINTER_H
  5.  
  6. #include "theatrix.h"
  7.  
  8. const int MAXSELS = 5;
  9.  
  10. class Pointer : public Player {
  11.     short int selection;
  12.     short int ys[MAXSELS];
  13.     short int sels;
  14.     void on_up();
  15.     void on_down();
  16.     DECLARE_CUELIST
  17. public:
  18.     Pointer(int s1, int s2, int s3 = 0, int s4 = 0, int s5 = 0);
  19.     void update_position();
  20.     int getselection()
  21.         { return selection; }
  22. };
  23.  
  24. #endif
  25.