|
|
发表于 2009-9-10 15:35:03
|
显示全部楼层
这里,我假设node3和turtle j之间的距离大于值dummy,我就让node3和turtle j之间的距离为值dummy) E& ?3 K. r& o. T, q) p
if dummy < (item j [distance-from-other-turtles] of node3)$ o8 E: w' _: J- g8 Y, F7 F6 _
[: k0 @; i! n6 X
ask node3 [- B5 V ?1 y, D' k! q0 h- z! M
set distance-from-other-turtles replace-item j distance-from-other-turtles dummy
8 S7 |7 u+ Y. G9 q ]
' G7 c E, ?5 `; g ] |
|