资源简介
本软件用vc++6.0制作!用来学习用...

代码片段和文件信息
///
/// 生态仿真系统中的动物总类
/// 实现了Creature接口
///
public class Animal extends Creature// Represent
{
///
/// 标识物体活动位置范围等信息,并负责物体的移动
///
private Mover mover;
///
/// 动物的构造函数
///
/// 动物的位置
/// 动物的体型大小
/// 生命状态
/// 活动范围
/// 最大速度
public Animal(Point where Size size int lifeState
Rectangle range int maxSpeed)
{
super(where size lifeState);
mover = new Mover(range maxSpeed);
}
///
/// 动物的构造函数
///
/// 动物的位置
/// 动物的体型大小
/// 活动范围
/// 最大速度
public Animal(Point where Size size
Rectangle range int maxSpeed)
{
super(where size);
mover = new Mover(range maxSpeed);
}
///
/// 动物的构造函数
///
/// 动物的名称
/// 动物的位置
/// 动物的体型大小
/// 动物的生命状态
/// 活动范围
/// 最大速度
public Animal(String name Point where Size size int lifeState
Rectangle range int maxSpeed)
{
super(name where size lifeState);
mover = new Mover(range maxSpeed);
}
///
/// 动物的构造函数
///
/// 动物的名称
/// 动物的位置
/// 动物的体型大小
/// 活动范围
/// 最大速度
public Animal(String name Point where Size size
Rectangle range int maxSpeed)
{
super(name where size);
mover = new Mover(range maxSpeed);
}
///
/// 动物的构造函数
///
/// 动物的名称
/// 活动范围
/// 最大速度
public Animal(String name
Rectangle range int maxSpeed)
{
super(name
new Point(Mover.GetRandomValue(50) Mover.GetRandomValue(50))
new Size(Mover.GetRandomValue(10) Mover.GetRandomValue(10)));
mover = new Mover(range maxSpeed);
}
///
/// 动物的构造函数
///
/// 活动范围
/// 最大速度
public Animal(Rectangle range int maxSpeed)
{
super(
new Point(Mover.GetRandomValue(50) Mover.GetRandomValue(50))
new Size(Mover.GetRandomValue(10) Mover.GetRandomValue(10)));
mover = new Mover(range maxSpeed);
}
///
/// 动物的构造函数
///
public Animal()
{
super(
new Point(Mover.GetRandomValue(50) Mover.GetRandomValue(50))
new Size(Mover.GetRandomValue(10) Mover.GetRandomValue(10)));
mover = new Mover();
}
///
/// 得到或获取动物的活动范围
///
public Rectangle getRa
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1671 2005-11-12 00:35 附件五\生态仿真系统\code\Animal.class
文件 1183 2005-11-12 00:35 附件五\生态仿真系统\code\Creature.class
文件 306 2005-11-12 00:35 附件五\生态仿真系统\code\CreatureGroup.class
文件 3328 2005-11-12 00:35 附件五\生态仿真系统\code\Ecology.class
文件 1234 2005-11-12 00:35 附件五\生态仿真系统\code\Herd.class
文件 188 2005-11-12 00:35 附件五\生态仿真系统\code\Hunted.class
文件 220 2005-11-12 00:35 附件五\生态仿真系统\code\Hunter.class
文件 13248 2005-10-19 23:06 附件五\生态仿真系统\code\images\back1.jpg
文件 1719 2005-10-16 00:10 附件五\生态仿真系统\code\images\predator1.gif
文件 1179 2005-10-16 00:29 附件五\生态仿真系统\code\images\predator2.gif
文件 877 2005-10-16 00:25 附件五\生态仿真系统\code\images\predator3.gif
文件 803 2005-10-16 00:21 附件五\生态仿真系统\code\images\prey1.gif
文件 1650 2005-10-16 00:36 附件五\生态仿真系统\code\images\prey2.gif
文件 2088 2005-10-16 00:10 附件五\生态仿真系统\code\images\prey3.gif
文件 1098 2005-10-16 00:12 附件五\生态仿真系统\code\images\prey4.gif
..A.SH. 81408 2005-10-20 23:35 附件五\生态仿真系统\code\images\Thumbs.db
目录 0 2006-04-29 14:51 附件五\生态仿真系统\code\images
文件 312 2005-11-12 00:35 附件五\生态仿真系统\code\LifeState.class
文件 1504 2005-11-12 00:35 附件五\生态仿真系统\code\Mover.class
文件 1235 2005-11-12 00:35 附件五\生态仿真系统\code\Pack.class
文件 340 2005-11-12 00:35 附件五\生态仿真系统\code\Point.class
文件 1650 2005-11-12 00:35 附件五\生态仿真系统\code\Predator.class
文件 759 2005-11-12 00:35 附件五\生态仿真系统\code\Prey.class
文件 199 2005-10-28 22:16 附件五\生态仿真系统\code\readme.txt
文件 752 2005-11-12 00:35 附件五\生态仿真系统\code\Rectangle.class
文件 14 2005-10-28 20:56 附件五\生态仿真系统\code\Run.bat
文件 269 2005-11-12 00:35 附件五\生态仿真系统\code\Size.class
文件 1991 2005-11-12 00:35 附件五\生态仿真系统\code\SL.class
文件 410 2005-11-12 00:35 附件五\生态仿真系统\code\Speed.class
文件 184320 2005-10-28 20:14 附件五\生态仿真系统\code\SuperLife.exe
............此处省略169个文件信息
相关资源
- VC++6.0番茄西红柿VAXvirsual assist X完美破
- VC++6.0 绿色版,免安装,非常好用。
- VC++6.0汉化包
- 车站计算机联锁vc++6.0程序代码
- 成绩管理系统VC++6.0
- VC++6.0技术内幕第五版中文版+英文版
- MFC多人聊天室
- VC++6.0 简体中文版 msdn
- VC++6.0编程实现MIF文件点集读取与凸壳
- Visual Assist X西红柿插件VC++6.0通用安装
- 用vc++6.0实现的银行账户管理系统
- 番茄助手vc++6.0+破解版
- 学生信息管理系统基于VC++6.0
- VC++6.0 MFC AGV绘轨迹
- VC++6.0小番茄助手(绿色版可用)173
- 基于VC MFC的数据分析系统
- VC++6.0 MFC串口编程上位机程序代码.
- VC++6.0多人网络小游戏-支持多人联机网
- 精美时钟VC++6.0源代码)
- vc++6.0 与access管理系统
- VC++6.0 双人五子棋游戏
- VC++ MFC编写的2048小游戏工程及源代码
- VC++6.0 MFC 基于对话框编写的扫雷源程
- 基于TCP协议VC++6.0实现的聊天程序
- Microsoft vc++6.0代码提示插件
- 数据结构课程设计 山东大学版 文件
- 遗传算法代码NSGA-II
- 基于VC++6.0的UDP通讯
- VC++6.0番茄西红柿助手VAXvirsual assist
- vc++6.0中文版支持win7
评论
共有 条评论