[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-games-devel
Subject:    Re: [Kde-games-devel] Proposing KGameRenderer
From:       Ian Wadham <iandw.au () gmail ! com>
Date:       2010-06-16 22:50:17
Message-ID: 201006170850.17415.iandw.au () gmail ! com
[Download RAW message or body]

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.
_______________________________________________
kde-games-devel mailing list
kde-games-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-games-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic