dingbian.cpp

来自「小球打砖块」· C++ 代码 · 共 38 行

CPP
38
字号
// DingBian.cpp: implementation of the DingBian class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "mqgGAME.h"
#include "DingBian.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

DingBian::DingBian()
{
	cr.left=5;
	cr.top=5;
	cr.right=555;
	cr.bottom=10;
}

DingBian::~DingBian()
{

}

void DingBian::IsZhuang()
{
	RECT tt;
	if(IntersectRect(&tt,&cr,&pBall->cr))
		pBall->ZhuanXiang(2);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?