Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef bird_h
- #define bird_h
- using namespace std;
- template<class jakis_typ>
- class abstract
- {
- protected:
- jakis_typ lwing;
- jakis_typ rwing;
- jakis_typ head;
- jakis_typ body;
- jakis_typ tail;
- public:;
- 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) {};
- void virtual aktualizuj_obiekt(char T[][80])=0;
- void virtual czysc_obiekt(char T[][80])=0;
- virtual ~abstract(){};
- };
- class bird : public abstract<char>
- {
- private:
- static int xbody;
- static int ybody;
- public:
- bird(char Body='X', char Head='>', char RWing=')', char LWing=')', char Tail='W');
- ~bird();
- static int& Set_x();
- static int& Set_y();
- void aktualizuj_obiekt(char T[][80]);
- void czysc_obiekt(char T[][80]);
- friend class ruch;
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement