home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 May / Chip_2002-05_cd1.bin / chplus / cpp / 3 / hra1.exe / ep.h < prev    next >
C/C++ Source or Header  |  1998-02-09  |  1KB  |  40 lines

  1. //---------------------------------------------------------------------------
  2. #ifndef VCLEarthPongH
  3. #define VCLEarthPongH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <mmsystem.h>
  10. //---------------------------------------------------------------------------
  11. class TForm1 : public TForm
  12. {
  13. __published:    // IDE-managed Components
  14.     void __fastcall FormPaint(TObject *Sender);
  15.     
  16.     void __fastcall FormActivate(TObject *Sender);
  17.     void __fastcall FormMouseMove(TObject *Sender, TShiftState Shift, int X, int Y);
  18.     
  19. private:    // User declarations
  20.     bool GameOver;
  21. public:        // User declarations
  22.     __fastcall TForm1(TComponent* Owner);
  23.     void __fastcall IdleLoop(TObject*, bool&);
  24.     TImage *backgroundImage;
  25.     TImage *spriteImage;
  26.     TImage *paddle;
  27.     TCanvas    *backgroundCanvas;
  28.     TCanvas *workCanvas;
  29.     TRect    backgroundRect, spriteRect, changeRect, paddleRect, changePaddleRect;
  30.     int x, y, xDir, yDir, paddleX, paddleY, paddleCenter, Angle;
  31.     void __fastcall virtual SetCursor(TMessage &);
  32.     BEGIN_MESSAGE_MAP
  33.     MESSAGE_HANDLER(WM_SETCURSOR, TMessage, SetCursor)
  34.     END_MESSAGE_MAP(TForm)
  35. };
  36. //---------------------------------------------------------------------------
  37. extern PACKAGE TForm1 *Form1;
  38. //---------------------------------------------------------------------------
  39. #endif
  40.