咳……又是自己摸索……
5 \$ d: w# J# W# @( n5 d2 Gsel = SwarmUtils.getSelector("FoodSpace", "seedFood");; {2 ?0 q. D2 X1 s
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);6 ^) N$ ]( a2 P5 I: X3 V" C
% T0 s9 z# X$ i% l! u' K0 K其中FoodSpace的seedFood函数:
/ R9 R, j5 p2 e- a) gpublic Object seedFood(int x, int y) {
) Z- V5 Q3 m* u0 z. h. u putValue$atX$Y(1, x, y);
& F: _) Q: V& I return this;
' q. e# |8 Y) O% n* c+ ?( ? } |