咳……又是自己摸索……
9 x. @1 o6 ^2 w; Dsel = SwarmUtils.getSelector("FoodSpace", "seedFood");, e; o: A' c4 |) t8 {3 T, ?: h0 p
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
+ M/ P8 I4 H! q* j9 R
) c2 h" T. N- Z3 [/ t V其中FoodSpace的seedFood函数:+ n0 F5 |3 x4 i# g: f3 F
public Object seedFood(int x, int y) {
: b3 J4 `. Z4 _; \8 u putValue$atX$Y(1, x, y);! ~% i' d; W/ k* R
return this;" Q+ H( G7 v& |; x! Y
} |