⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unit1.h

📁 一个烟花演示的程序代码
💻 H
字号:
//---------------------------------------------------------------------------

#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Menus.hpp>
#include <ExtCtrls.hpp>
//#include <boost/random.hpp>
#include <ctime>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
        TMainMenu *MainMenu1;
        TMenuItem *start;
        TMenuItem *stop;
        TTimer *Timer1;
        void __fastcall FormMouseDown(TObject *Sender, TMouseButton Button,
          TShiftState Shift, int X, int Y);
        void __fastcall startClick(TObject *Sender);
        void __fastcall stopClick(TObject *Sender);
private:	// User declarations
int m_nAppX;
    int m_nAppY;
    int m_centerX;
    int m_centerY;
    int m_mouseX;
    int m_mouseY;
    int m_sleepTime;
    bool isError;
    bool m_isPaintFinished;
    bool isRunning;
    bool isInitialized;
    bool isStopped;

    int* pix0;
    int pixls;
    int pixls2;

    int bits;
    double* bit_px;
    double* bit_py;
    double* bit_vx;
    double* bit_vy;
    int* bit_sx;
    int* bit_sy;
    int* bit_l;
    int* bit_f;
    int* bit_p;
    int* bit_c;
    int bit_max;
    int bit_sound;
    int ru;
    int rv;
    int dy;

    Graphics::TBitmap* bmp;
    Graphics::TBitmap* testbmp;
    //typedef boost::minstd_rand base_generator_type;
    //base_generator_type generator;

public:		// User declarations
        __fastcall TForm1(TComponent* Owner);
         __fastcall virtual ~TForm1();
           void  __fastcall Init();
   void __fastcall run();
   void  __fastcall rend();
   double __fastcall randor();
   void __fastcall bit_set(int i, int j, int k);
   int __fastcall bit_get(int i, int j);
   
   
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -