[Kde-games-devel] Proposing KGameRenderer

Ian Wadham iandw.au at gmail.com
Thu Jun 17 00:50:17 CEST 2010


On Thursday 17 June 2010 4:00:26 am Parker Coates wrote:
> On Wed, Jun 16, 2010 at 16:51, Stefan Majewsky wrote:
> > The class would look something like this: (just a very compact sketch)
> >
> > class KGameRenderedSprite : public QObject
> > {
> >    Q_OBJECT
> >    Q_PROPERTY(QPixmap pixmap READ pixmap NOTIFY pixmapChanged)
> >    Q_PROPERTY(QString spriteKey...)
> >    Q_PROPERTY(QSize renderSize...)
> >    Q_PROPERTY(int frame...)
> >    ...
> > };
> 
> Okay, now I *really* object to using the word "sprite". :D Since this
> class could be doing practically anything, I hardly think the word
> sprite is appropriate anymore. Maybe something nice and abstract like
> KGameRendererClient? I don't really know. Is your intention to make
> KGameRenderedItem inherit from this class? I think that would make the
> most sense.
> 
I have not been following this closely, but may I suggest something like
Pic or Graphic instead of Sprite?

BTW, what is "nice" about "abstract"? ... :-)  The more generic names become,
the more they drain away meaning and the harder code becomes to read.

All the best, Ian W.


More information about the kde-games-devel mailing list