Um, I really don't know what you're talking about. I remember when I was trying to learn Java there was a command thing "this"
Is that what you're talking about?
Um, I really don't know what you're talking about. I remember when I was trying to learn Java there was a command thing "this"
Is that what you're talking about?
Yes. When you are inside a member function of a class, and you want to refer to the object that is currently being used, you use "this" which is a special keyword just for that purpose. It is a pointer to the current object, which in this case is a GameManager. Since your functions want a reference to a GameManager, not a pointer, you use the * which is why you want to pass *this.
This might be a little advanced for you. Unfortunately, its probably the best way to get your program working without changing the design. Ideally, your MainManager function would not be part of the GameManager class, but I wouldn't worry about changing that until after you get this part working.
OK, the program seems to be working just fine now. Thank you so so so so so much for your help. I understand how frustrating it can be helping a noobie out and I really really appreciate your help. I'm going to try my best to learn more about C++ classes. I have learned a lot from you. Thank you to all the other people that have helped me along the path of C++ too. My program wouldn't be running without any of your help.
Here is the program, props to all of you.
http://z33.zupload.com/download.php?...filepath=39587
Edit: are there any tutorial on doing cool things like how to center text and make a cool welcome screen? Just little fun things that I can try out.
I'm also going to be doing little things to it, like I added an "Exit" command to exit the battle arena and the shop.
Last edited by Cypher; 07-05-2007 at 03:51 PM.