to the world
very mystery and interesting
C++博客
首页
新随笔
联系
聚合
管理
11 Posts :: 0 Stories :: 5 Comments :: 0 Trackbacks
公告
HI,nice to meet you,and i am a c++ beginer,and hope you can give me some help to help me to improve my c++ level. thank you.
常用链接
我的随笔
我的评论
我参与的随笔
留言簿
(1)
给我留言
查看公开留言
查看私人留言
随笔分类
tears
随笔档案
2006年4月 (1)
2006年2月 (1)
2006年1月 (9)
文章分类
to the world
相册
WANNA SEE YOU
收藏夹
Happy to the world
搜索
积分与排名
积分 - 2742
排名 - 1865
最新评论
1. re: 字符串
评论内容较长,点击标题查看
--小虫
2. re: 字符的输出
请不要在首页提问, 下次再发现, 你的帐户将被停用!
--dudu
3. re: 字符串
不是吧?我感觉不是这样的
书上好象不是那样的,我是个外行。
--hacken
4. re: 字符串
评论内容较长,点击标题查看
--tony
5. re: 字符的输出
评论内容较长,点击标题查看
--小虫
阅读排行榜
1. Game(369)
2. 字符串(366)
3. 字符的输出(327)
4. game(298)
5. null(210)
评论排行榜
1. 字符串(3)
2. 字符的输出(2)
3. 字符输出(0)
4. null(0)
5. Long time wanna forget(0)
game
//
---------------------------------------------------------------------------
#ifndef UnitTetrisH
#define
UnitTetrisH
//
---------------------------------------------------------------------------
#include
<
Classes.hpp
>
#include
<
Controls.hpp
>
#include
<
StdCtrls.hpp
>
#include
<
Forms.hpp
>
#include
"
TetrisData.h
"
#include
<
ExtCtrls.hpp
>
#include
<
ActnList.hpp
>
#include
<
Menus.hpp
>
#include
<
AppEvnts.hpp
>
//
---------------------------------------------------------------------------
class
TFormTetris :
public
TForm
{
__published:
//
IDE-managed Components
TPaintBox
*
PaintBox1;
TMainMenu
*
MainMenu1;
TActionList
*
ActionList1;
TAction
*
AnNew;
TAction
*
AnPause;
TAction
*
AnHScore;
TAction
*
AnExit;
TPaintBox
*
PaintBox2;
TTimer
*
Timer1;
TMenuItem
*
MmFile;
TMenuItem
*
New1;
TMenuItem
*
Pause1;
TMenuItem
*
HighScore1;
TMenuItem
*
Exit1;
TMenuItem
*
N1;
TLabel
*
LabelLines;
TLabel
*
LabelScore;
TScrollBox
*
ScrollBox1;
TApplicationEvents
*
ApplicationEvents1;
TLabel
*
LabelHome;
TLabel
*
Label2;
TLabel
*
Label3;
TLabel
*
Label4;
TLabel
*
LabelHighScore;
TMenuItem
*
H1;
TAction
*
AnHelp;
TAction
*
AnAbout;
TMenuItem
*
AnHelp1;
TMenuItem
*
AnAbout1;
TLabel
*
Label1;
void
__fastcall PaintBox1Paint(TObject
*
Sender);
void
__fastcall FormKeyDown(TObject
*
Sender, WORD
&
Key,
TShiftState Shift);
void
__fastcall AnNewExecute(TObject
*
Sender);
void
__fastcall AnPauseExecute(TObject
*
Sender);
void
__fastcall AnHScoreExecute(TObject
*
Sender);
void
__fastcall AnExitExecute(TObject
*
Sender);
void
__fastcall PaintBox2Paint(TObject
*
Sender);
void
__fastcall Timer1Timer(TObject
*
Sender);
void
__fastcall ApplicationEvents1Deactivate(TObject
*
Sender);
void
__fastcall LabelHomeMouseEnter(TObject
*
Sender);
void
__fastcall LabelHomeMouseLeave(TObject
*
Sender);
void
__fastcall LabelHomeClick(TObject
*
Sender);
void
__fastcall AnHelpExecute(TObject
*
Sender);
void
__fastcall AnAboutExecute(TObject
*
Sender);
public
:
static
const
NumScores
=
5
;
#pragma pack(push,
1
)
typedef
struct
{
int
Score;
char
Name[
32
];
}
TScoreItem;
typedef union
{
TScoreItem Scores[NumScores];
char
Buffer[
512
];
}
TTetrisParams;
#pragma pack(pop)
private
:
//
User declarations
__property
bool
Paused
=
{ read
=
_bPaused, write
=
SetPause }
;
bool
_bPaused;
TBaseTetris Tetris;
TTetrisParams TetrisParams;
Graphics::TBitmap
*
TtBmp,
*
PsBmp,
*
OvBmp;
void
__fastcall SetPause(
bool
);
void
__fastcall CheckGameStatus(
void
);
void
__fastcall RefreshDisplay(
void
);
void
LoadParams(
void
);
void
SaveParams(
void
);
void
GetPlayerName(
char
*
lpName);
void
ShowHighScores(
void
);
public
:
//
User declarations
__fastcall TFormTetris(TComponent
*
Owner);
__fastcall
~
TFormTetris();
}
;
//
---------------------------------------------------------------------------
extern
PACKAGE TFormTetris
*
FormTetris;
//
---------------------------------------------------------------------------
#endif
posted on 2006-01-17 17:41
hacken
阅读(298)
评论(0)
编辑
收藏
引用
只有注册用户
登录
后才能发表评论。
【推荐】100%开源!大型工业跨平台软件C++源码提供,建模,组态!
网站导航:
博客园
IT新闻
BlogJava
博问
Chat2DB
管理
Powered by:
C++博客
Copyright © hacken