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

資源簡(jiǎn)介

神經(jīng)網(wǎng)絡(luò)和遺傳算法參考《游戲中的人工智能技術(shù)》一書(shū)。 使用平臺(tái)修改自programking同學(xué)的超級(jí)瑪麗源碼 (http://download.csdn.net/source/497676)

資源截圖

代碼片段和文件信息

#include?“stdafx.h“
#include?“bitmaptool.h“
#include?“Gamemap.h“

extern?GAMEMAP*?pGamemap;

extern?FILEREPORT?f1;

?int?MYBITMAP::g_nMapWidth;//地圖寬度
?int?MYBITMAP::g_nMapHeight;
?HDC?MYBITMAP::g_hdcdest;
?HDC?MYBITMAP::g_hdcsrc;

MYBITMAP::MYBITMAP()
{

}

MYBITMAP::~MYBITMAP()
{
Deleteobject(hBm);
}

void?MYBITMAP::Init(HINSTANCE?hInstanceint?iResourceint?rowint?col)
{
BITMAP?bm;
inum=row;//單位圖形行數(shù)
jnum=col;//單位圖形列列

LPTSTR?pstr=MAKEINTRESOURCE(iResource);
hBm=LoadBitmap(hInstancepstr);
Getobject(hBmsizeof(BITMAP)&bm);

width=bm.bmWidth/jnum;
height=bm.bmHeight/inum;

}

void?MYBITMAP::SetDevice(HDC?hdestHDC?hsrcint?wwinint?hwin)
{
g_hdcdest=hdest;
g_hdcsrc=hsrc;
g_nMapWidth=wwin;
g_nMapHeight=hwin;
}

void?MYBITMAP::Show(int?xint?y)
{
m_curPos.x=x;
m_curPos.y=y;
Selectobject(g_hdcsrchBm);
BitBlt(g_hdcdestm_curPos.xm_curPos.ywidthheightg_hdcsrc00SRCCOPY);
}

void?MYBITMAP::ShowCenter(int?y)
{
m_curPos.x=(g_nMapWidth-width)/2;
m_curPos.y=y;

Selectobject(g_hdcsrchBm);
BitBlt(g_hdcdestm_curPos.xm_curPos.ywidthheightg_hdcsrc00SRCCOPY);
}

void?MYBITMAP::ShowLoop(int?leftint?topint?rightint?bottomint?iframe)
{
int?ij;

Selectobject(g_hdcsrchBm);
for(j=top;j {
for(i=left;i {
BitBlt(g_hdcdestijwidthheightg_hdcsrciframe*width0SRCCOPY);
}
}
}

void?MYBITMAP::ShowNoBack(int?xint?yint?iframe)
{
m_curPos.x=x;
m_curPos.y=y;
Selectobject(g_hdcsrchBm);
BitBlt(g_hdcdestm_curPos.xm_curPos.ywidthheight/2g_hdcsrciframe*widthheight/2SRCAND);
BitBlt(g_hdcdestm_curPos.xm_curPos.ywidthheight/2g_hdcsrciframe*width0SRCPAINT);
}


void?MYBITMAP::ShowNoBackLoop(int?xint?yint?iframeint?iNum)
{
int?i;
m_curPos.x=x;
m_curPos.y=y;
Selectobject(g_hdcsrchBm);
for(i=0;i {
BitBlt(g_hdcdestm_curPos.x+i*widthm_curPos.ywidthheight/2g_hdcsrciframe*widthheight/2SRCAND);
BitBlt(g_hdcdestm_curPos.x+i*widthm_curPos.ywidthheight/2g_hdcsrciframe*width0SRCPAINT);
}
}

void?MYBITMAP::ShowAni()
{
/* if(!iStartAni)
return;

Selectobject(g_hdcsrchBm);
BitBlt(g_hdcdestm_curPos.xm_curPos.ywidthheight/2g_hdcsrcframenow*widthheight/2SRCAND);
BitBlt(g_hdcdestm_curPos.xm_curPos.ywidthheight/2g_hdcsrcframenow*width0SRCPAINT);

framenow++;
//播放結(jié)束
if(framenow>=inum)
iStartAni=0;
*/
}
//設(shè)置位圖在屏幕中顯示的起點(diǎn)位置
void?MYBITMAP::SetAni(int?xint?y)
{
m_curPos.x=x;
m_curPos.y=y;
/*
framenow=0;
iStartAni=1;
*/
}

//設(shè)置位圖在屏幕中顯示的起點(diǎn)位置
void?MYBITMAP::SetPos(int?istyleint?xint?y)
{
switch(istyle)
{
case?BM_CENTER:
m_curPos.x=(g_nMapWidth-width)/2;
m_curPos.y=y;
break;
case?BM_USER:
m_curPos.x=x;
m_curPos.y=y;
break;
}
}

void?MYBITMAP::Draw(DWORD?dwRop)
{
Selectobject(g_hdcsrchBm);
BitBlt(g_hdcdestm_curPos.xm_curPos.ywidthheightg_hdcs

?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----

?????文件??????17718??2008-09-15?23:57??Marry\Bird\Bird.cpp

?????文件???????7169??2008-09-15?23:07??Marry\Bird\Bird.h

?????文件???????2848??2002-02-18?14:23??Marry\Bird\C2DMatrix.cpp

?????文件???????1729??2002-02-18?14:23??Marry\Bird\C2DMatrix.h

?????文件???????8716??2008-09-08?21:37??Marry\Bird\CData.cpp

?????文件???????5867??2008-09-16?00:01??Marry\Bird\CData.h

?????文件???????8346??2008-09-15?23:07??Marry\Bird\CGenAlg.cpp

?????文件???????3613??2008-09-15?23:07??Marry\Bird\CGenAlg.h

?????文件???????5204??2008-09-11?23:17??Marry\Bird\CMapper.cpp

?????文件???????3367??2008-09-11?23:17??Marry\Bird\CMapper.h

?????文件???????7082??2008-08-27?00:13??Marry\Bird\CNeuralNet.cpp

?????文件???????2466??2008-08-13?15:40??Marry\Bird\CNeuralNet.h

?????文件???????1185??2008-09-15?23:07??Marry\Bird\collision.cpp

?????文件????????641??2008-09-15?23:46??Marry\Bird\collision.h

?????文件????????413??2008-07-31?12:58??Marry\Bird\Consciousness.cpp

?????文件????????637??2008-08-17?06:52??Marry\Bird\Consciousness.h

?????文件??????13604??2008-09-15?23:40??Marry\Bird\CRace.cpp

?????文件???????3893??2008-09-15?23:38??Marry\Bird\CRace.h

?????文件???????2992??2008-09-02?15:25??Marry\Bird\CTimer.cpp

?????文件???????1156??2008-09-02?15:25??Marry\Bird\CTimer.h

?????文件???????2710??2008-08-25?22:12??Marry\Bird\SVector2D.h

?????文件???????1119??2002-02-17?11:09??Marry\Bird\utils.cpp

?????文件???????1532??2002-06-05?15:47??Marry\Bird\utils.h

?????文件???????9259??2008-09-16?00:09??Marry\bitmaptool.cpp

?????文件???????4226??2008-09-15?23:40??Marry\bitmaptool.h

?????文件???????2279??2008-09-09?13:40??Marry\define.h

?????文件???????1240??2008-08-27?16:36??Marry\filereport.cpp

?????文件????????524??2008-08-30?14:39??Marry\filereport.h

?????文件??????26106??2008-09-15?23:53??Marry\gamemap.cpp

?????文件???????3646??2008-08-30?14:41??Marry\gamemap.h

............此處省略102個(gè)文件信息

評(píng)論

共有 條評(píng)論