gwin->get_tqueue()->add(curtime + 50, this, udata);
gwin->get_tqueue()->add(curtime + 100, this, udata);
void Earthquake::handle_event	(	unsigned long curtime,		// Current time of day.	long udata			// ->usecode machine.	)	{	Image_window *win = gwin->get_win();	int w = win->get_width(), h = win->get_height();	int dx = rand()%9 - 4;	int dy = rand()%9 - 4;	win->copy(0, 0, w, h, dx, dy);	gwin->set_painted();	gwin->show();					// Shake back.	win->copy(0, 0, w, h, -dx, -dy);	if (++i < len)			// More to do?  Put back in queue.		gwin->get_tqueue()->add(curtime + 50, this, udata);	else		delete this;	}