📄 c15_2f.h
字号:
//---------------------------------------------------------------------------
#ifndef C15_2fH
#define C15_2fH
//---------------------------------------------------------------------------
#include <vcl\Classes.hpp>
#include <vcl\Controls.hpp>
#include <vcl\StdCtrls.hpp>
#include <vcl\Forms.hpp>
#include <vcl\ExtCtrls.hpp>
#include <vcl\Menus.hpp>
#include <vcl\ComCtrls.hpp>
//---------------------------------------------------------------------------
// 自定义
#define KeyRight 37
#define KeyTop 38
#define KeyLeft 39
#define KeyBottom 40
#define KeySpace 32
typedef struct{
long Left, Top, Right, Bottom;
}UDRect;
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published: // IDE-managed Components
TImage *Imagea1;
TImage *Imagea2;
TImage *Imagea3;
TImage *Imagea4;
TImage *Imageb1;
TImage *Imageb2;
TImage *Imageb3;
TImage *Imageb4;
TImage *Image1;
TImage *Image2;
TImage *Image3;
TImage *Image4;
TMainMenu *MainMenu1;
TMenuItem *N1;
TMenuItem *New;
TMenuItem *N3;
TMenuItem *Exit;
TImage *ShipA;
TImage *ShipB;
TImage *ShipAtp;
TImage *ShipBtp;
TTimer *Timer1;
TStatusBar *StatusBar1;
void __fastcall FormCreate(TObject *Sender);
void __fastcall FormResize(TObject *Sender);
void __fastcall FormPaint(TObject *Sender);
void __fastcall Timer1Timer(TObject *Sender);
void __fastcall FormKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
void __fastcall NewClick(TObject *Sender);
private: // User declarations
public: // User declarations
int CurrentDir; // 当前方向
int NewDir; // 新方向
int TpDir;
int ShipDir;
int ShipTpDir;
void AddOne();
__fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -