View Single Post
Old 08-24-2005, 10:56 PM   #16 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
By the way, do the main game loop first. I want to see how you do that again.
This time no bool* myVar. Ditch the "*".

The first thing you need to ask yourself:
'Who/what is responsible for terminating the program on client's request'
In your original code you had the answer wrong. Find a different one. Remember, every function or every block of code should be valued by its behaviour. I cannot stress that enough. You always want to think about behaviour and responsibilities. That is the "soul" of object oriented programming in real practice. Start now, become good soon.
__________________
Valmont is offline   Reply With Quote