咳……又是自己摸索……) F% w: O( i+ L1 X
sel = SwarmUtils.getSelector("FoodSpace", "seedFood");+ q& A; Y/ M& Y7 W5 F8 T# P* C
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);; Y+ t7 P i' y1 l
+ {# K8 u& y7 E% x3 J4 @0 x其中FoodSpace的seedFood函数:- t! d' L" E; J% v' j
public Object seedFood(int x, int y) {' a) e4 A A/ [( C1 j
putValue$atX$Y(1, x, y);+ }( Y* q/ \/ Z0 |0 u$ c
return this;
% W& c) J+ D+ B9 ]+ q } |