Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
12
Добавлен:
17.04.2013
Размер:
916 б
Скачать
//-----------------------------------------------------------------
#ifndef BallH
#define BallH
//-----------------------------------------------------------------
#endif

class CBall
{
  private:
   int x,y;
   TImage* Img;

  public:
   void MoveDeltaXY(int dx, int dy);
   void Move12(int u, int i);
   void MoveToY(int Y);
   void MoveToX(int X);
   void Hide();
   int ComputeBallY12(int x,int y);
   void Hide12(int f,int g);
   void IncX(int dx){x=x+dx;};
   int GetX(){return x;}
   int GetY(){return y;}
   CBall (TImage* _Img);
};

class CSupport
{
  private:
   double angle;
   int p;
   int x1,y1, x2,y2,
       xc,yc,len2;
   TImage* Img;
   double AngleToRad() {return (angle*3.1415) / 180.0;};
  public:
   void Rotate(double dA,int t);
   void Hide();
   int Naklon(){return 2*((angle+10)>0)-1;}
   int ComputeBallY(int x);
   CSupport (TImage* _Img);
};

Соседние файлы в папке laba3..2