Advertisement
Guest User

Untitled

a guest
May 24th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.92 KB | None | 0 0
  1. #ifndef bird_h
  2. #define bird_h
  3.  
  4. using namespace std;
  5.  
  6. template<class jakis_typ>
  7. class abstract
  8. {
  9. protected:
  10.     jakis_typ lwing;
  11.     jakis_typ rwing;
  12.     jakis_typ head;
  13.     jakis_typ body;
  14.     jakis_typ tail;
  15. public:;
  16.     abstract<jakis_typ>(jakis_typ Body2, jakis_typ Head2, jakis_typ RWing2, jakis_typ LWing2, jakis_typ Tail2):lwing(LWing2),rwing(RWing2),head(Head2), body(Body2), tail(Tail2) {};
  17.     void virtual aktualizuj_obiekt(char T[][80])=0;
  18.     void virtual czysc_obiekt(char T[][80])=0;
  19.     virtual ~abstract(){};
  20. };
  21.  
  22. class bird : public abstract<char>
  23. {
  24. private:
  25.     static int xbody;
  26.     static int ybody;
  27. public:
  28.     bird(char Body='X', char Head='>', char RWing=')', char LWing=')', char Tail='W');
  29.     ~bird();
  30.  
  31.     static int& Set_x();
  32.     static int& Set_y();
  33.     void aktualizuj_obiekt(char T[][80]);
  34.     void czysc_obiekt(char T[][80]);
  35.     friend class ruch;
  36. };
  37.  
  38.  
  39.  
  40.  
  41.  
  42. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement