Re: [DM-dev] I've got it: the best of both models...
Brought to you by:
acdalton,
henningsen
|
From: Henningsen <al...@gl...> - 2001-07-02 13:21:56
|
>> Will this work when we e.g. want to make a room with 2 doors of
>> different sizes? Or must that be done with multiple calls to addArea?
>
>Ah, multiple doors I hadn't thought about.
I think an interface for arbitrary rooms (think 8 walls, 3 doors, ... or 16
walls for a fancy palace?) could easily become too complex. The object that
is most flexible is the Wall... we should be able to make walls with doors
placed anywhere within them ("within" meaning at least one closed square on
each side of the door). If you want to make arbitrary Rooms, maybe the best
thing would be to put Wall objects in their constructor, then overload the
constructor for all sensible numbers of Wall arguments.
>I know "cp" and "rm" aren't anywhere near each other on the keyboard,
>so I'm not quite sure how my fingers managed it, but they did.
The technical term for this is "absentmindedness", I think.
>That's my plan. I wouldn't be happy if it couldn't load from a file.
>The difference from my earlier approach is that it will render as it
>reads, instead of building a list and rendering it later.
That makes perfect sense, looks like this will be simpler, thus better.
Peter
|