Hi Guys,
i'm writing snake game, and i need help with concept.
What way will be the best to store pieces of snake body? I thought to create snake class (QObject) and item class (inherit from QGraphicsItem), and use QList to store all item's in snake class.
But i think this idea can create problem with add items to scene, and i get error on start writing code, when i tried to add items to QList (C2248 error).
So i want to ask expirienced users, how you design classes in that kind of program.
I hope that you understand me, and sorry for my english.