Space Walk board game
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

27 lines
434 B

  1. #ifndef SELECTIONBOX_H
  2. #define SELECTIONBOX_H
  3. #include <string>
  4. #include "window.h"
  5. class SelectionBox : public Window
  6. {
  7. public:
  8. SelectionBox(int height, int width);
  9. void update();
  10. void resize();
  11. unsigned char select(std::string str, std::string *selection);
  12. void printSelection(std::string str, std::string *selection);
  13. private:
  14. bool isNumber(const std::string &s);
  15. int height;
  16. int width;
  17. };
  18. #endif // SELECTIONBOX_H