咳……又是自己摸索……' u, C; A/ h3 C( a
sel = SwarmUtils.getSelector("FoodSpace", "seedFood");
3 a ~% v) m6 B a; Y9 | worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
) H8 }1 ^8 f( H t# F; t# Z
# R- p) \: g+ P* F3 p. D其中FoodSpace的seedFood函数:
/ ]: f0 \" w+ B8 zpublic Object seedFood(int x, int y) {
% S) _6 _8 o7 |3 w! r% C \( Q putValue$atX$Y(1, x, y);& A# ?9 Q3 v6 q
return this;
8 T* K" A' Y) A, n8 k } |