91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 6.34MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2024-02-03
  • 語言: C/C++
  • 標簽: 坦克大戰??

資源簡介

坦克大戰 坦克大戰 簡單 的坦克大戰 網上搜集的 分享給大家哦

資源截圖

代碼片段和文件信息

#include?“.\bullet.h“

Bullet::Bullet(HDC?hdc?HDC?mdc?HDC?bufdc)
{
b_hdc?=?hdc;
b_mdc?=?mdc;
b_bufdc?=?bufdc;
b_laserMap[0]?=?(HBITMAP)::LoadImage(NULL?“../res/graphics/laser1_h.bmp“?IMAGE_BITMAP?10?10?LR_LOADFROMFILE);
b_laserMap[1]?=?(HBITMAP)::LoadImage(NULL?“../res/graphics/laser1_v.bmp“?IMAGE_BITMAP?10?10?LR_LOADFROMFILE);
b_laserMap[2]?=?(HBITMAP)::LoadImage(NULL?“../res/graphics/laser2_h.bmp“?IMAGE_BITMAP?10?10?LR_LOADFROMFILE);
b_laserMap[3]?=?(HBITMAP)::LoadImage(NULL?“../res/graphics/laser2_v.bmp“?IMAGE_BITMAP?10?10?LR_LOADFROMFILE);
b_explode?????=?(HBITMAP)::LoadImage(NULL?“../res/graphics/setup2.bmp“?IMAGE_BITMAP?560?56?LR_LOADFROMFILE);
b_point.x?=?0;
b_point.y?=?0;
b_xV?=?0;
b_yV?=?0;
b_M??=?0;
b_rect.bottom?=?0;
b_rect.left???=?0;
b_rect.right??=?0;
b_rect.top????=?0;
b_explodeTurn?=?0;
b_exit?=?false;
b_exploding?=?false;
}

Bullet::~Bullet(void)
{
for?(int?i=0;?i<4;?i++)
{
::Deleteobject(b_laserMap[i]);
}
::Deleteobject(b_explode);
::DeleteDC(b_bufdc);
::DeleteDC(b_mdc);
::DeleteDC(b_hdc);
}

void?Bullet::ShowBullet(void)
{
if?(b_exit)
{
::Selectobject(b_mdc?b_laserMap[b_M]);
::TransparentBlt(b_bufdcb_point.x?b_point.y?10?10?b_mdc?0?0?10?10?RGB(02550));
}
}

void?Bullet::ShowExplode(int?x?int?y)
{
if?(b_exploding)
{
::Selectobject(b_mdc?b_explode);
::TransparentBlt(b_bufdcx?y?40?40?b_mdc?b_explodeTurn*56+4?4?40?40?RGB(2550255));
++b_explodeTurn;
}

if?(b_explodeTurn?==?9)
{
b_explodeTurn?=?0;
b_exploding?=?false;
}
}

void?Bullet::SetRect(int?x?int?y)
{
b_rect.left?=?x;
b_rect.top?=?y;
b_rect.right?=?b_rect.left?+?10;
b_rect.bottom?=?b_rect.top?+?10;
}

bool?Bullet::BulletHitMap(Map?*map?int?x?int?y)
{
RECT?temp;
SetRect(x?y);
for?(int?i=0;?i {
for?(int?j=0;?j {
if?(map->m_map[i][j]==1?||?map->m_map[i][j]==3)
{
map->SetRect(i?j);

if?(IntersectRect(&temp?&b_rect?&(map->m_rect))?||?IntersectRect(&temp?&b_rect?&(map->m_kingRect)))
{
b_exploding?=?true;???????????????//?顯示爆炸
ShowExplode(x-20?y-20);

if?(map->m_map[i][j]?==?1)
{
map->m_map[i][j]?=?0;
}
return?true;
}
}
}
}
return?false;
}

bool?Bullet::BulletHitKing(Map?*map?int?x?int?y)
{
RECT?temp;
SetRect(x?y);
map->SetKingRect();
if?(IntersectRect(&temp?&b_rect?&(map->m_kingRect)))
{
return?true;
}
return?false;
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????127284??2010-08-19?00:17??坦克\code\BattleCity.aps

?????文件???10734592??2010-08-19?00:18??坦克\code\BattleCity.ncb

?????文件???????2828??2010-08-19?00:17??坦克\code\BattleCity.rc

?????文件????????879??2010-08-17?14:00??坦克\code\BattleCity.sln

?????文件????????909??2008-08-29?16:56??坦克\code\BattleCity.sln.old

????..A..H.?????13824??2010-08-19?00:18??坦克\code\BattleCity.suo

????..A..H.?????11264??2008-10-28?18:34??坦克\code\BattleCity.suo.old

?????文件???????5567??2010-08-19?00:17??坦克\code\BattleCity.vcproj

?????文件???????4600??2008-09-06?00:20??坦克\code\BattleCity.vcproj.7.10.old

?????文件???????1427??2010-08-19?00:18??坦克\code\BattleCity.vcproj.PC-201005112133.Administrator.user

?????文件???????2576??2008-09-08?09:49??坦克\code\Bullet.cpp

?????文件????????708??2008-09-07?02:22??坦克\code\Bullet.h

?????文件???????2238??2010-08-19?00:17??坦克\code\cat.cur

?????文件???????3067??2008-09-06?17:18??坦克\code\Enemy.cpp

?????文件????????459??2008-09-07?11:56??坦克\code\Enemy.h

?????文件???????7684??2010-08-18?22:35??坦克\code\Game.cpp

?????文件???????1843??2008-09-07?14:57??坦克\code\Game.h

?????文件???????2628??2008-09-07?02:39??坦克\code\Hero.cpp

?????文件????????585??2008-09-07?02:22??坦克\code\Hero.h

?????文件??????90174??2008-08-29?20:20??坦克\code\icon1.ico

?????文件???????7095??2008-09-07?15:04??坦克\code\Judge.cpp

?????文件???????1022??2008-09-07?15:04??坦克\code\Judge.h

?????文件???????3135??2008-09-07?00:02??坦克\code\Map.cpp

?????文件???????1006??2008-09-07?11:57??坦克\code\Map.h

?????文件???????1231??2008-09-07?02:49??坦克\code\Prop.cpp

?????文件????????662??2008-09-07?02:22??坦克\code\Prop.h

?????文件?????196608??2010-08-19?00:18??坦克\code\Release\BattleCity.exe

?????文件????????145??2010-08-19?00:18??坦克\code\Release\BattleCity.exe.intermediate.manifest

?????文件????1166336??2010-08-19?00:18??坦克\code\Release\BattleCity.pdb

?????文件??????93596??2010-08-19?00:17??坦克\code\Release\BattleCity.res

............此處省略104個文件信息

評論

共有 條評論