Original Post
I am writing a small set of card games and I want to put buttons on the screen. So far my idea is this, create a class, cObject and create a linked list of cObjects, when I click or move the mouse scroll through the list and decide if the mouse is within a button zone.. if it is generate the relevant event, if not move to the next object. I plan on figuring out function pointers and sending my buttons the relevant function as I create them.
Am I even heading in the right direction? Should I continue trying to do this or is there a better way?
=*=
If things seem bad, think that they can get a whole load worse, and they don''t seem so bad anymore
=*=