You are on page 1of 1

1 #ifndef _ui_h_

2 #define _ui_h_
3
4 #include <algorithm>
5 #include <initializer_list>
6 #include <iostream>
7 #include <sstream>
8 #include <string>
9 #include "soccer.h"
10
11 class UI {
12 public:
13 UI() : is_browsing_(true) {}
14
15 bool exec_command(const std::string & command, bool & done);
16 void display();
17 void start();
18 void run();
19
20 private:
21 bool check_paid(const std::string & input, bool & paid);
22 void get_player_details(std::string & name, int & year, bool & paid);
23 void search();
24 void new_season();
25 Season season_;
26 bool is_browsing_;
27 };
28
29 #endif
30

You might also like