咳……又是自己摸索……$ P; r# E7 ?+ r, K* d( G) {: K
sel = SwarmUtils.getSelector("FoodSpace", "seedFood");
1 w! D! N/ L5 A( V" c' N1 u worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
5 g$ A/ B+ y: c* |, R3 g% z2 L
( k. f3 t/ f9 w) c M- w! x其中FoodSpace的seedFood函数:
5 |5 `, d/ K6 e! Cpublic Object seedFood(int x, int y) {
, o4 w5 R9 g; m; V. U$ Z putValue$atX$Y(1, x, y);
* g. T& l) n5 y* `$ r' I return this;
J& P; D c5 y9 R& q1 Y, O } |