资源简介

山东科技大学C++实训项目—飞机大战:附带实训报告

资源截图

代码片段和文件信息

/*#include “StdAfx.h“
#include “bomb.h“
#include “resource.h“

CImageList bomb::Images;
bomb::bomb(void)
{
//x = -100;
//y = -100;
speed = 20;
}

bomb::~bomb(void)
{
}

BOOL bomb::Draw(CDC*pDCBOOL bPause)
{
Images.Draw(pDC0m_ptPosILD_TRANSPARENT);
return true;
}

BOOL bomb::LoadImage()
{
return CGameobject::LoadImage(ImagesIDB_BITMAP6RGB(000)881);
}

CRect bomb::GetRect()//碰撞检查
{
return CRect(m_ptPosCPoint(m_ptPos.x+8m_ptPos.y+8));
}*/

#include “StdAfx.h“
#include “bomb.h“
//CImageList bomb::Images;
bomb::bomb(void)
{
//x = -100;
//y = -100;
speed = 20;
//x = m_ptPos.x;
//y = m_ptPos.y;
}

bomb::~bomb(void)
{
}

BOOL bomb::Draw(CDC*pDCBOOL bPause)
{
CPen p1(PS_SOLID2RGB(00255));
CBrush b1(RGB(000));
pDC->Selectobject(&p1);
pDC->Selectobject(&b1);
//pDC->Ellipse(xyx+5y+5);
pDC->Ellipse(m_ptPos.xm_ptPos.ym_ptPos.x+5m_ptPos.y+5);
return true;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件      123392  2013-01-19 10:10  c++实训报告.doc
     目录           0  2012-12-30 21:54  test\
     目录           0  2012-12-30 21:54  test\Debug\
     文件     3535360  2012-12-29 16:33  test\Debug\test.exe
     文件     1518640  2012-12-29 16:33  test\Debug\test.ilk
     文件     3771392  2012-12-29 16:33  test\Debug\test.pdb
     目录           0  2012-12-30 21:54  test\test\
     文件    23243776  2012-12-29 16:51  test\test.ncb
     文件         878  2012-12-24 09:06  test\test.sln
     文件       82432  2012-12-29 16:51  test\test.suo
     文件         962  2012-12-28 11:40  test\test\bomb.cpp
     文件         905  2012-12-28 12:50  test\test\bomb.h
     目录           0  2012-12-30 21:54  test\test\Debug\
     文件       11826  2012-12-28 16:48  test\test\Debug\bomb.obj
     文件        6448  2012-12-29 16:33  test\test\Debug\BuildLog.htm
     文件       13140  2012-12-28 16:48  test\test\Debug\enemy.obj
     文件       13393  2012-12-28 16:48  test\test\Debug\explosion.obj
     文件       10286  2012-12-28 16:48  test\test\Debug\Gameobject.obj
     文件       12201  2012-12-28 16:48  test\test\Debug\gameover.obj
     文件       33963  2012-12-28 16:48  test\test\Debug\MainFrm.obj
     文件       12963  2012-12-28 16:48  test\test\Debug\missile.obj
     文件          67  2012-12-29 16:33  test\test\Debug\mt.dep
     文件       12097  2012-12-28 16:48  test\test\Debug\plane.obj
     文件      465490  2012-12-28 16:48  test\test\Debug\stdafx.obj
     文件        1196  2012-12-28 16:48  test\test\Debug\test.exe.embed.manifest
     文件        1260  2012-12-28 16:48  test\test\Debug\test.exe.embed.manifest.res
     文件        1120  2012-12-29 16:33  test\test\Debug\test.exe.intermediate.manifest
     文件       36344  2012-12-28 16:48  test\test\Debug\test.obj
     文件    25100288  2012-12-28 16:48  test\test\Debug\test.pch
     文件     2833764  2012-12-28 16:48  test\test\Debug\test.res
     文件       25217  2012-12-28 16:48  test\test\Debug\testDoc.obj
............此处省略41个文件信息

评论

共有 条评论