33 lines
851 B
C++
33 lines
851 B
C++
#ifndef Item_h_
|
|
#define Item_h_
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
#include <memory>
|
|
#include <SDL.h>
|
|
|
|
class Item
|
|
{
|
|
|
|
private:
|
|
std::vector<std::shared_ptr<SDL_Texture>> image_textures;
|
|
std::string brand_name = "", product_name = "", upc = "";
|
|
void set_text_property(const std::string&, std::string&, const std::string&);
|
|
static void destroy_texture(SDL_Texture*);
|
|
|
|
public:
|
|
void add_image_texture(SDL_Texture*);
|
|
const std::vector<std::shared_ptr<SDL_Texture>>& get_image_textures() const;
|
|
void set_brand_name(const std::string&);
|
|
const std::string& get_brand_name() const;
|
|
void set_product_name(const std::string&);
|
|
const std::string& get_product_name() const;
|
|
void set_upc(const std::string&);
|
|
const std::string& get_upc() const;
|
|
std::string get_full_name() const;
|
|
~Item();
|
|
|
|
};
|
|
|
|
#endif
|