[Kde-games-devel] A new highscore manager - KScoreManager

Matt Williams matt at milliams.com
Tue Apr 29 15:46:18 CEST 2008


On Tuesday 29 April 2008 03:59:16 Parker Coates wrote:
> 2008/4/28 Matt Williams <matt at milliams.com>:
> >  Attached is the current API for the class (named KScoreManager).
> >
> >  Comments? Complaints? Insults?
>
> Hello Matt,
>
> I'm glad to see that you're giving the high score system some
> attention. Whatever you decided to do, I'm sure it'll come out better
> in the long run. After reading your header, I have a couple thoughts.
>
> First, I think it'd be nice to have a static setting for the number of
> scores to to save and display. I got thinking about this because there
> are options to make the score table as wide as you want, but the
> length is constant. I realise ten is a pretty reasonable default, but
> it think it'd be neat to be able to ask for only 5 scores or maybe as
> many as thirty. If it turns out to be a pain to implement than it
> might not be worth the effort, but if we're rewriting the thing from
> scratch now would be the time to try it.

What do you think about:

/**
* \param numberOfPlaces the number of scores to save and display on the board
*/
void setNumberOfScores(int numberOfScores);

What should it be called?

Regards,
Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-games-devel/attachments/20080429/d2c95b9c/attachment.pgp 


More information about the kde-games-devel mailing list