[Reality] Re: darkness

Glyph Lefkowitz glyph@divunal.com
Sun, 22 Aug 1999 18:27:39 -0400 (EDT)


Aah, this would be a very bad idea.  If this were the case, setFocus()
would have to call Look. (And then what would Look call?)

I would recommend you have a look at the source-code there...

Also, darkness has effects other than description.  It makes a room's
contents inoperable and invisible.

Perhaps we should have an isOperableTo() and isVisibleTo() properties...
then we could handle darkness with a few dynamic properties.  The method
you've described, however, is not viable.

On Sun, 22 Aug 1999, Phil Christensen wrote:

> I think darkness ought to be handled by look. It should check to see if
> there's a "dark" boolean set or not. That way, it'd be simple to make a
> dark room (just add a dark boolean, no need to extend class_dark room.
> that way if other room classes ever become very useful -- like
> underwater rooms and such -- we can have dark, underwater (or whatever)
> rooms.
> 
> We would need to change a few spots, so look as always called to
> refresh the view, but that'd be fairly simple...
> 
> -phil
> __________________________________________________
> Do You Yahoo!?
> Bid and sell for free at http://auctions.yahoo.com
> 
> 
> _______________________________________________
> Reality maillist  -  Reality@twistedmatrix.com
> http://www.twistedmatrix.com/mailman/listinfo/reality
>