咳……又是自己摸索……
5 e. y% T# ~% W- Y$ c2 Fsel = SwarmUtils.getSelector("FoodSpace", "seedFood");
2 k; s- r, N" E worldRaster.setButton$Client$Message(1, modelSwarm.getFood(), sel);! T/ c( x6 G7 o7 V2 E/ W Y
6 ]! ~5 F& g4 g+ j其中FoodSpace的seedFood函数:
/ k7 K W- Y; K0 jpublic Object seedFood(int x, int y) {
. i+ h$ g; e& w) x/ B4 C putValue$atX$Y(1, x, y);
8 p, A2 a% J4 h' E- s& z; H return this;) K8 l; q) \1 b5 J" c( |
} |