資源簡介
狼吃羊游戲簡要代碼,有基類和派生類,初級編碼,清晰易懂。

代碼片段和文件信息
#include?“organism.h“
//有參構造函數
Organism::Organism(World?*worint?xxint?yy)
{
world?=?wor;
x?=?xx;
y?=?yy;
moved?=?false;
starveTime?=?0;
surviveTime?=?0;
wor->setAt(xythis);
}
//析構函數
Organism::~Organism()
{
if(world)
delete?world;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2016-08-27?11:13??Wolf?and?Sheep\
?????文件?????????276??2016-06-12?15:11??Wolf?and?Sheep\organism.cpp
?????文件?????????734??2016-05-31?14:32??Wolf?and?Sheep\organism.h
?????文件????????1933??2016-06-12?15:11??Wolf?and?Sheep\sheep.cpp
?????文件?????????277??2016-05-31?15:54??Wolf?and?Sheep\sheep.h
?????文件????????1079??2016-06-27?11:50??Wolf?and?Sheep\test.cpp
?????文件????????2993??2016-06-12?15:12??Wolf?and?Sheep\wolf.cpp
?????文件?????????271??2016-05-31?15:54??Wolf?and?Sheep\wolf.h
?????文件????????2124??2016-06-12?15:11??Wolf?and?Sheep\world.cpp
?????文件?????????692??2016-06-27?11:51??Wolf?and?Sheep\world.h
- 上一篇:語音識別系統源碼
- 下一篇:Horiba MFC數字通信協議
評論
共有 條評論