资源简介
可显示下一方块类型,得分,游戏开始时间等
代码片段和文件信息
// 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
相关资源
- 移木块游戏,可以自编自玩,vc6.0编写
- C++纯文字DOS超小RPG游戏
- 安科瑞智能电能表MODBUS通讯程序 VC6
- ChartCtrl控件库(可在VS2019中使用)
- 九齐单片机源码
- Qt画图工具源码(qgraphics draw)
- qt 串口助手源码
- modbus 主机源码
- 《LINUX C编程从初学到精通》光盘源码
- OLED驱动源码
- tm1650+stm32f103源码(board_tm1650.c)
- cheat engine 7.2源码
- CrySearch内存搜索器源码
- FTP客户端源码(c++)
- MFC视频播放器源码(支持avi/wma/mp3等格
- CreatBitmap图片合成源码
- vs2008 can总线通讯源码
- MFC控件重绘
- 宠物管理系统课程设计(源码+数据库
- Windows扩展命令程序(源码)
- c语言实现火车订票系统(控制台)源
- 鼠标连点器(附源码)
- c++ 简易贪吃蛇源码
- 杀毒软件源码
- 经典外汇智能交易程序Amazing3.1源码(
- 微型文件系统源码(FatFs)
- 海康私有流分析接口源码(附使用说
- VC6 USB开发源码
- SVM算法实现(源码+文档)
- 俄罗斯方块游戏源码(Tetris)
评论
共有 条评论