資源簡介
俄羅斯方塊游戲采用MFC類框架設計
內附有詳細的源代碼和可執行程序
還有課程設計報告
包括需求分析 數據結構 功能函數 設計
本人自己寫的 希望對你有一定的參考價值
代碼片段和文件信息
//?ELSblock.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“ELSblock.h“
#include?“MainFrm.h“
#include?“ELSblockDoc.h“
#include?“ELSblockView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CELSblockApp
BEGIN_MESSAGE_MAP(CELSblockApp?CWinApp)
//{{AFX_MSG_MAP(CELSblockApp)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG_MAP
//?Standard?file?based?document?commands
ON_COMMAND(ID_FILE_NEW?CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?CWinApp::OnFileOpen)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CELSblockApp?construction
CELSblockApp::CELSblockApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CELSblockApp?object
CELSblockApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CELSblockApp?initialization
BOOL?CELSblockApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
//?Change?the?registry?key?under?which?our?settings?are?stored.
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization.
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));
LoadStdProfileSettings();??//?Load?standard?INI?file?options?(including?MRU)
//?Register?the?application‘s?document?templates.??Document?templates
//??serve?as?the?connection?between?documents?frame?windows?and?views.
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CELSblockDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CELSblockView));
AddDocTemplate(pDocTemplate);
//?Parse?command?line?for?standard?shell?commands?DDE?file?open
CCommandLineInfo?cmdInfo;
ParseCommandLine(cmdInfo);
//?Dispatch?commands?specified?on?the?command?line
if?(!ProcessShellCommand(cmdInfo))
return?FALSE;
//?The?one?and?only?window?has?been?initialized?so?show?and?update?it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return?TRUE;
}
////////////////////////////////////////////////////////
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????884818??2009-11-28?18:36??LB俄羅斯方塊.exe
?????文件????????192??2009-11-30?22:06??說明.txt
?????文件??????40448??2009-12-01?13:57??報告\函數調用流程圖.doc
?????文件?????231424??2009-12-01?21:31??報告\彩印的一頁.doc
?????文件??????33792??2009-11-28?14:03??報告\游戲運行流程圖.doc
?????文件??????34304??2009-12-01?22:48??報告\目錄.doc
?????文件?????377344??2009-12-01?22:37??報告\課程設計報告.doc
?????文件????????453??2009-11-26?19:21??ELSblock\Block.h
?????文件?????884816??2009-12-01?13:20??ELSblock\Debug\ELSblock.exe
?????文件?????348368??2009-12-01?13:20??ELSblock\Debug\ELSblock.ilk
?????文件??????22879??2009-11-28?11:05??ELSblock\Debug\ELSblock.obj
?????文件????5494688??2009-11-26?19:21??ELSblock\Debug\ELSblock.pch
?????文件?????517120??2009-12-01?13:20??ELSblock\Debug\ELSblock.pdb
?????文件?????635868??2009-11-28?18:36??ELSblock\Debug\ELSblock.res
?????文件??????15255??2009-11-26?23:12??ELSblock\Debug\ELSblockDoc.obj
?????文件??????45584??2009-12-01?13:20??ELSblock\Debug\ELSblockView.obj
?????文件??????19974??2009-11-28?11:24??ELSblock\Debug\MainFrm.obj
?????文件?????105508??2009-11-26?19:21??ELSblock\Debug\StdAfx.obj
?????文件?????222208??2009-12-01?13:20??ELSblock\Debug\vc60.idb
?????文件?????389120??2009-12-01?13:20??ELSblock\Debug\vc60.pdb
?????文件?????657560??2009-11-29?15:19??ELSblock\ELSblock.aps
?????文件???????2327??2009-12-01?17:54??ELSblock\ELSblock.clw
?????文件???????4150??2009-11-26?18:08??ELSblock\ELSblock.cpp
?????文件???????4719??2009-11-28?18:37??ELSblock\ELSblock.dsp
?????文件????????524??2009-11-26?18:08??ELSblock\ELSblock.dsw
?????文件???????1378??2009-11-26?18:08??ELSblock\ELSblock.h
?????文件?????107520??2009-12-01?18:29??ELSblock\ELSblock.ncb
?????文件??????51712??2009-12-01?18:29??ELSblock\ELSblock.opt
?????文件???????1168??2009-12-01?13:20??ELSblock\ELSblock.plg
?????文件??????11840??2009-11-28?18:36??ELSblock\ELSblock.rc
............此處省略24個文件信息
評論
共有 條評論