[Reality] Re: Current Task: OBJECT PROXIES.

Christopher Armstrong radix at twistedmatrix.com
Thu May 4 09:47:45 CDT 2006


On 5/4/06, Mike Pelletier <mike at mkp.ca> wrote:
> On Thursday 04 May 2006 10:09, Christopher Armstrong wrote:
> > We did it. Rooms can now be dark (a LocationLighting powerup on a
> > room, with candelas set to 0), and they'll make everything inside of
> > them invisible[1]. It does this by powering up the room for
> > ILocationProxy, which will get a chance to proxy all of its contents
> > found during a findProviders traversal (as opposed to an IProxy, which
> > gets a chance to proxy all objects found *through* it, like the
> > objects on the other side of a red glass window).
> >
> > Then we implemented a torch. The torch is a Thing with a LightSource
> > powerup; the LightSource powers up its thing for ILightSource, and
> > provides a candelas attribute. The LightingLocation proxy searches for
> > (calls findProviders with) ILightSource, accumulates all the light
> > sources, and adds it to the ambient light of the room, to decide
> > whether it is bright enough to see anything.
>
> Does an ILocationProxy get to know who's asking?  Seems as though properties
> of the actor would be important to deciding whether it's bright enough/too
> bright.

Not yet, but it's a good possibility. We've been careful to not do too
much that doesn't directly solve use cases we want to implement, so as
to avoid the abstraction-insanity that Imagination had. Getting
information about the observer doing the requesting sounds like
something that would really be necessary for a bunch of use cases,
though.

> Is there a place we can follow progress?  None of this seems to be in the SVN
> repository, or I'm just too stupid to use it properly.  Don't see changes
> more recent than "3 weeks".

See /branches/torch-931. We're doing branch-based development (or
Ultimate Quality Based Development, or whatever). Every branch has a
ticket, and the Imaginary tickets are here:

http://divmod.org/trac/query?status=new&status=assigned&status=reopened&component=Imaginary&order=priority

Have fun, and help out ;-)

--
Christopher Armstrong
International Man of Twistery
http://radix.twistedmatrix.com/
http://twistedmatrix.com/
http://canonical.com/



More information about the Reality mailing list