咳……又是自己摸索……
. c% s& i0 ^8 O& Dsel = SwarmUtils.getSelector("FoodSpace", "seedFood");# s* J& v0 H/ @+ z3 _3 G: u" X
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);3 D, V r- _, C* L: x
( ^" I; t3 T0 g [/ H其中FoodSpace的seedFood函数:
4 A5 ~( i& [! G/ Npublic Object seedFood(int x, int y) {
; P' x- Z) U: F9 x! _+ s) U putValue$atX$Y(1, x, y);
% a8 d4 j7 x) P; ~4 Y) S return this;1 i' b w) f" N
} |