From: Brett L. <wak...@ea...> - 2005-03-05 19:01:07
|
>> For example, it's an easy way for us to gather reporting data >> about the state of the game by using each objects toString() >> method rather than polling every getFoo() method for every >> property within the object. > >Well, you can always call toString(), but perhaps you mean >to customise its output? Like what? > >I was talking about objects reporting their state *changes*. >We need that to create a readable game log (e.g. for PBEM). > >Using toString() to report *current state* is fine with me. > Yes, I meant customizing the toString() output. I highly doubt the default= toString() output will be very helpful. ;-) You're right that we were talking about different things. Perhaps if we use toString() to output the current object state as XML,= that gives us an easy method of generating both game logs and a game state file for things like PBEM. ---Brett. |