本软件用vc++6.0制作!用来学习用...
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1671 2005-11-12 00:35 附件五生态仿真系统codeAnimal.class
文件 1183 2005-11-12 00:35 附件五生态仿真系统codeCreature.class
文件 306 2005-11-12 00:35 附件五生态仿真系统codeCreatureGroup.class
文件 3328 2005-11-12 00:35 附件五生态仿真系统codeEcology.class
文件 1234 2005-11-12 00:35 附件五生态仿真系统codeHerd.class
文件 188 2005-11-12 00:35 附件五生态仿真系统codeHunted.class
文件 220 2005-11-12 00:35 附件五生态仿真系统codeHunter.class
文件 13248 2005-10-19 23:06 附件五生态仿真系统codeimagesack1.jpg
文件 1719 2005-10-16 00:10 附件五生态仿真系统codeimagespredator1.gif
文件 1179 2005-10-16 00:29 附件五生态仿真系统codeimagespredator2.gif
文件 877 2005-10-16 00:25 附件五生态仿真系统codeimagespredator3.gif
文件 803 2005-10-16 00:21 附件五生态仿真系统codeimagesprey1.gif
文件 1650 2005-10-16 00:36 附件五生态仿真系统codeimagesprey2.gif
文件 2088 2005-10-16 00:10 附件五生态仿真系统codeimagesprey3.gif
文件 1098 2005-10-16 00:12 附件五生态仿真系统codeimagesprey4.gif
..A.SH. 81408 2005-10-20 23:35 附件五生态仿真系统codeimagesThumbs.db
目录 0 2006-04-29 14:51 附件五生态仿真系统codeimages
文件 312 2005-11-12 00:35 附件五生态仿真系统codeLifeState.class
文件 1504 2005-11-12 00:35 附件五生态仿真系统codeMover.class
文件 1235 2005-11-12 00:35 附件五生态仿真系统codePack.class
文件 340 2005-11-12 00:35 附件五生态仿真系统codePoint.class
文件 1650 2005-11-12 00:35 附件五生态仿真系统codePredator.class
文件 759 2005-11-12 00:35 附件五生态仿真系统codePrey.class
文件 199 2005-10-28 22:16 附件五生态仿真系统code
eadme.txt
文件 752 2005-11-12 00:35 附件五生态仿真系统codeRectangle.class
文件 14 2005-10-28 20:56 附件五生态仿真系统codeRun.bat
文件 269 2005-11-12 00:35 附件五生态仿真系统codeSize.class
文件 1991 2005-11-12 00:35 附件五生态仿真系统codeSL.class
文件 410 2005-11-12 00:35 附件五生态仿真系统codeSpeed.class
文件 184320 2005-10-28 20:14 附件五生态仿真系统codeSuperLife.exe
............此处省略169个文件信息
///
/// 生态仿真系统中的动物总类
/// 实现了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 附件五生态仿真系统codeAnimal.class
文件 1183 2005-11-12 00:35 附件五生态仿真系统codeCreature.class
文件 306 2005-11-12 00:35 附件五生态仿真系统codeCreatureGroup.class
文件 3328 2005-11-12 00:35 附件五生态仿真系统codeEcology.class
文件 1234 2005-11-12 00:35 附件五生态仿真系统codeHerd.class
文件 188 2005-11-12 00:35 附件五生态仿真系统codeHunted.class
文件 220 2005-11-12 00:35 附件五生态仿真系统codeHunter.class
文件 13248 2005-10-19 23:06 附件五生态仿真系统codeimagesack1.jpg
文件 1719 2005-10-16 00:10 附件五生态仿真系统codeimagespredator1.gif
文件 1179 2005-10-16 00:29 附件五生态仿真系统codeimagespredator2.gif
文件 877 2005-10-16 00:25 附件五生态仿真系统codeimagespredator3.gif
文件 803 2005-10-16 00:21 附件五生态仿真系统codeimagesprey1.gif
文件 1650 2005-10-16 00:36 附件五生态仿真系统codeimagesprey2.gif
文件 2088 2005-10-16 00:10 附件五生态仿真系统codeimagesprey3.gif
文件 1098 2005-10-16 00:12 附件五生态仿真系统codeimagesprey4.gif
..A.SH. 81408 2005-10-20 23:35 附件五生态仿真系统codeimagesThumbs.db
目录 0 2006-04-29 14:51 附件五生态仿真系统codeimages
文件 312 2005-11-12 00:35 附件五生态仿真系统codeLifeState.class
文件 1504 2005-11-12 00:35 附件五生态仿真系统codeMover.class
文件 1235 2005-11-12 00:35 附件五生态仿真系统codePack.class
文件 340 2005-11-12 00:35 附件五生态仿真系统codePoint.class
文件 1650 2005-11-12 00:35 附件五生态仿真系统codePredator.class
文件 759 2005-11-12 00:35 附件五生态仿真系统codePrey.class
文件 199 2005-10-28 22:16 附件五生态仿真系统code
eadme.txt
文件 752 2005-11-12 00:35 附件五生态仿真系统codeRectangle.class
文件 14 2005-10-28 20:56 附件五生态仿真系统codeRun.bat
文件 269 2005-11-12 00:35 附件五生态仿真系统codeSize.class
文件 1991 2005-11-12 00:35 附件五生态仿真系统codeSL.class
文件 410 2005-11-12 00:35 附件五生态仿真系统codeSpeed.class
文件 184320 2005-10-28 20:14 附件五生态仿真系统codeSuperLife.exe
............此处省略169个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)