咳……又是自己摸索……
8 q! u6 p% x b9 M) ~sel = SwarmUtils.getSelector("FoodSpace", "seedFood");* l ~" m# M9 v' O0 r
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);2 \" \. |# y2 A1 ]
+ C6 m1 X' `% a# ?8 \其中FoodSpace的seedFood函数:
* X, _/ ?5 b. S$ O* t: ypublic Object seedFood(int x, int y) {
+ O' T6 D: y0 e putValue$atX$Y(1, x, y);2 s/ Y- N+ L7 o, n; J
return this;
$ q8 R. u: B" y; t' a } |