咳……又是自己摸索……: e* N# ?/ Z* T- `3 n" @# A
sel = SwarmUtils.getSelector("FoodSpace", "seedFood");3 {2 E* V7 {/ E" T( c& y, Z
worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);0 k0 N. X9 d$ A V
; @2 b2 e* e+ X' Q
其中FoodSpace的seedFood函数:* c4 c- P2 ~ q- L, Y; B
public Object seedFood(int x, int y) {
- R1 A( _& U+ b/ f3 r putValue$atX$Y(1, x, y);
: _9 I& ~' C( ^- L return this;# e/ e. }% [1 S* ^8 i' |$ l
} |