Добавил:
sergey123
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:
//---------------------------------------------------------------------------
#ifndef CBallH
#define CBallH
//---------------------------------------------------------------------------
class CBall
{
protected:
int y,x,r;
public:
int GetX(){return x;};
int GetY(){return y;};
int GetR(){return r;};
void SetX(int xn){x=xn;};
void SetY(int yn){y=yn;};
void MoveX(int dx){x=x+dx;};
CBall(int xn,int yn);
void Draw();
};
#endif