uni

University stuff
git clone git://git.margiolis.net/uni.git
Log | Files | Refs | README | LICENSE

game.hpp (747B)


      1 #ifndef GAME_HPP
      2 #define GAME_HPP
      3 
      4 #include "app.hpp"
      5 
      6 class Game final: public App
      7 {
      8     private:
      9         std::string genre;
     10         bool online;
     11 
     12     public:
     13         Game();
     14         Game(const char *serialnum, const std::string& name,
     15              const std::string& os, Manufacturer *manf, const int price,
     16              const std::string& genre, const bool online);
     17         Game(const Game& g);
     18 
     19         const std::string get_genre() const {return genre;}
     20         constexpr const bool get_online() const {return online;}
     21         void set_genre(const std::string& genre) {this->genre = genre;}
     22         void set_online(const bool online) {this->online = online;}
     23         void print(std::ostream& stream) const override;
     24 };
     25 
     26 #endif /* GAME_HPP */