1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#ifndef YETI_H #define YETI_H #endif #include <vector> using namespace std; class yeti { public: void moveleft(); void moveright(); void moveup(); void movedown(); yeti(int, int, int, int); void movetowards(int, int, vector<yeti>, int); int xpos(); int ypos(); private: int x; int y; int sizex; int sizey; int absolute(int); };