pic.hpp 557 B

12345678910111213141516171819202122232425
  1. #ifndef _pic_hpp
  2. #define _pic_hpp
  3. #include "body.hpp"
  4. #include <fstream>
  5. #include <iostream>
  6. using std::ifstream; using std::ios;
  7. using std::cout; using std::endl;
  8. class pic : public body
  9. {
  10. public:
  11. pic() : body() { clear(); } //carica picture piena di spazi (??????? crea un body di dimensioni indefinite!!)
  12. pic(int w,int h);
  13. ~pic();
  14. char** picture;
  15. void loadpicture(const char*); //loads picture from a file
  16. void clear(); //deletes picture
  17. void set_values(int W, int H); //sets coordinates of body
  18. void print();
  19. };
  20. #endif