zuobian.cpp

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

CPP
39
字号
// ZuoBian.cpp: implementation of the ZuoBian class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "mqgGAME.h"
#include "ZuoBian.h"

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

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

ZuoBian::ZuoBian()
{
	cr.left=5;
	cr.top=5;
	cr.right=10;
	cr.bottom=440;
}

ZuoBian::~ZuoBian()
{

}

void ZuoBian::IsZhuang()
{
	RECT tt;
	if(IntersectRect(&tt,&cr,&pBall->cr))
		pBall->ZhuanXiang(1);

}

⌨️ 快捷键说明

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