From: William Rutiser Date: 2010-03-14T23:02:33+09:00 Subject: Re: Newbie Help : Object Jerome David Sallinger wrote: > Hassan Schroeder wrote: > I'd suggest looking at the Observer pattern. > >> Have each Ball continuously register its location (x,y) with a single >> Observer object; an attempt to register to an occupied location can >> be handled however you want -- throw an exception, send the Ball >> a message to reverse direction, vaporize the Ball, etc. >> >> No loops or iterators in sight :-) >> >> FWIW, >> > > Awesome! Thanx > You may find it useful to look at the Wikipedia entries for "collision detection" and "game physics". -- Bill