资源简介
狼吃羊游戏简要代码,有基类和派生类,初级编码,清晰易懂。
代码片段和文件信息
#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数字通信协议
相关资源
- 语音识别系统源码
- libstdc++-3.4.6-9.i386_libstdc++-3.4.6-11.x86_
- C++ Builder DLL
- windows下c实现telnet代码
- 梯度下降求函数极值C++代码
- VC++ 串口调试助手源代码
- 基于QtQuick的QCustomPlot实现
- 04737 C++程序设计 精讲 串讲 笔记 音频
- 矩阵类的运算符重载
- vc++做的考试系统c/s模式
- KCF跟踪算法c++
- ftp的C++源码实现,可以进行文件传输
- c++实现计算器
- VC++ 向指定串口发送和接收数据可十六
- 数据结构课程设计CC++描述[阮宏一][程
- vc++FTP搜索工具()
- 基于VC++的图像修复源代码
- Google C++编码规范
- 简单电梯c++实现
- AES/ECB/PKCS5Padding C++实现
- c++商品管理
- 打印出有向图中的所有环C++
- cocos2dx 3.17 2048游戏的源码
- C++中缀表达式求值
- 一个数字水印的VC++源程序,支持图片
- C++大学教程(第七版)](美)戴特尔
- Visual C++串口通信
- 蜘蛛纸牌VC++
- k-means 源代码C++实现
- QTP 运行报:Microslft Visual C++ Runtime Lib
评论
共有 条评论