From: brett l. <wak...@gm...> - 2007-01-22 22:40:28
|
On 1/22/07, Erik Vos <eri...@hc...> wrote: > > > > >I agree that in principle there should not be public variables. > > >Do we really have sinned as much as you seem to imply? > > >It is possible that I have not always been consistent, > > >so I would appreciate your examples of wrong use of public etc. > > For example, all windows (views) are public, so I guess you > > call them direct > > from the gmae-classes (model). > > No, the UI classes are in control, and pull all info from the game > classes. > The only exception is the use of the Observer pattern > to keep the UI fields up to date. But here also the UI Observer > must register at the game Observable. > > So it might very well be true that the UI classes don't need to be public. > Your fault, Brett... ;-) Yeah, I admit that I've made plenty of mistakes. :-) ----Brett. |