int Container_game_object::get_objects ( Vector& vec, int shapenum, int framenum ) { int vecsize = vec.get_cnt(); Game_object *obj = last_object; if (!last_object) return (0); do { obj = obj->get_next(); if ((shapenum == -359 || obj->get_shapenum() == shapenum) && (framenum == -359 || obj->get_framenum() == framenum)) vec.append(obj);  obj->get_objects(vec, shapenum); } while (obj != last_object); return (vec.get_cnt() - vecsize); }
Object_list& get_objects() { return objects; }
int Container_game_object::get_objects	(	Vector& vec,			// Objects returned here.	int shapenum,			// Shape#, or -359 for any.	int framenum			// Frame#, or -359 for any.	)	{	int vecsize = vec.get_cnt();	Game_object *obj = last_object;	if (!last_object)		return (0);	do		{		obj = obj->get_next();		if ((shapenum == -359 || obj->get_shapenum() == shapenum) &&		    (framenum == -359 || obj->get_framenum() == framenum))			vec.append(obj);					// Search recursively.		obj->get_objects(vec, shapenum);		}	while (obj != last_object);	return (vec.get_cnt() - vecsize);	}