資源簡介
可顯示下一方塊類型,得分,游戲開始時間等

代碼片段和文件信息
//?Brick.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?“game.h“
#include?“Brick.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CBrick
IMPLEMENT_DYNCREATE(CBrick?CView)
CBrick::CBrick()
{
}
CBrick::~CBrick()
{
}
BEGIN_MESSAGE_MAP(CBrick?CView)
//{{AFX_MSG_MAP(CBrick)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CBrick?drawing
void?CBrick::OnDraw(CDC*?pDC)
{
CDocument*?pDoc?=?GetDocument();
//?TODO:?add?draw?code?here
}
/////////////////////////////////////////////////////////////////////////////
//?CBrick?diagnostics
#ifdef?_DEBUG
void?CBrick::AssertValid()?const
{
CView::AssertValid();
}
void?CBrick::Dump(CDumpContext&?dc)?const
{
CView::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CBrick?message?handlers
int?CBrick::Randtype()
{
????srand((unsigned)time(NULL));
????return?rand()%19;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1236??2005-10-19?13:47??game\Brick.cpp
?????文件???????1382??2005-10-19?13:47??game\Brick.h
?????文件??????15987??2005-10-19?13:47??game\Debug\Brick.obj
?????文件?????147500??2005-10-23?17:50??game\Debug\game.exe
?????文件?????337716??2005-10-23?17:50??game\Debug\game.ilk
?????文件??????22741??2005-10-19?11:01??game\Debug\game.obj
?????文件????5492564??2005-10-18?20:21??game\Debug\game.pch
-----------?---------??----------?-----??----
??????????????6019126????????????????????7
評論
共有 條評論