void set_egged(Egg_object *egg, Rectangle& tiles, bool add) { need_cache()->set_egged(egg, tiles, add); }
void Chunk_cache::set_egged ( Egg_object *egg, Rectangle& tiles ) {  int eggnum = egg_objects.find(egg); if (eggnum < 0) if ((eggnum = egg_objects.find(0)) >= 0) egg_objects.put(eggnum, egg); else eggnum = egg_objects.append(egg); if (eggnum > 15) eggnum = 15; short mask = (1<<eggnum); int stopx = tiles.x + tiles.w, stopy = tiles.y + tiles.h; for (int ty = tiles.y; ty < stopy; ty++) for (int tx = tiles.x; tx < stopx; tx++) eggs[ty*tiles_per_chunk + tx] |= mask; }
	void set_egged(Egg_object *egg, Rectangle& tiles, bool add)		{ need_cache()->set_egged(egg, tiles, add); }