From: brett l. <wak...@gm...> - 2006-02-04 19:06:23
|
On 2/4/06, Erik Vos <eri...@hc...> wrote: > > brett lentz wrote: > > > > >To allow the end game conditions to be detected, I'm changing the > > >return types to various cash transferring methods from void to > > >boolean. > > > > > > > > Rather than checking it in every place, it seems like it > > would be better > > to have the Bank object (or whatever implements the bank) > > keep track of > > whether it is broken. Then at the end of an OR you can check > > that flag > > and end the game or give a warning message. > Who said the return value needs to be checked everywhere? There are plenty of transactions already happening that don't check the return value and won't ever need to. ---Brett. |