咳……又是自己摸索……: E) M# U, C3 ^2 p" M
sel = SwarmUtils.getSelector("FoodSpace", "seedFood");4 y5 p* S4 A& F: Y( d- I8 y
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);
! [! m+ E/ y* J. q
3 G6 A8 _9 j- b其中FoodSpace的seedFood函数:
# V/ c* ~) |/ r, c) A# r7 Zpublic Object seedFood(int x, int y) {
9 K' I, {' G9 \7 l5 T putValue$atX$Y(1, x, y);
) e- N* \1 Z1 f$ x return this;5 }6 S( X$ d1 r/ @7 m9 y2 i
} |