[Kde-games-devel] enums for unified CardCache
Mauricio Piacentini
piacentini at kde.org
Tue Feb 5 15:30:20 CET 2008
Andreas Pakulat wrote:
> Another option would be to allow a QString parameter to identify the
> card, this means the most flexibility, but also the most fragility in
> the CardCache code. There's no real type checking possible with this and
> things will get badly broken when the user selects an svg deck that
> doesn't contain the elements given to the cache.
Maybe I did not understand all variables exactly, but in the cache
classes I wrote for libkmahjongg I use a formatted QString as the key,
as it is imo the most flexible approach. IIRC in libkmahjongg it has the
format:
themename_elementid_width_height
Regards,
Mauricio Piacentini
More information about the kde-games-devel
mailing list