Where to include .h .cc files in Engine?
by Dwayne Brown · in Torque Game Engine · 06/10/2007 (11:10 pm) · 3 replies
I am trying to add a .h and .cc files to the torque engine. I am using VS 2005 express edition. When I add the two existing items where do I include the .h and .cc files in the code before I start to build?
About the author
#2
06/11/2007 (9:09 am)
I am placing a clone of the AIPlayer.h, and AIPlayer.cc file. I could not find where to place the new file. Do you have an idea where? I tried to do a find and replace all and my build failed big time. Thanks for your reply Aaron.
#3
You're copying the AIPlayer.h, and AIPlayer.cc file and putting them as a different name? Then you want to route the code so that it uses your code instead of the AIPlayer code?
Search and replace should do it I think. But you've got to make sure that any reference to ANYTHING in the old aiplayer.h and aiplayer.cc is covered in your new files. Anything in any file that had "AIPlayer::" in front of it has to be present in your new file class.
In addition, there's AIPlayer.h, and AIPlayer.cc in other projects...make sure you're taking care of it for the entire solution. I believe the only other project is "Torque Tool Lib", but you might check the others just in case.
That should do it if I've understood correctly, if you're still having problems, try pasting a few of the build errors. You might also want to tell VS to AIPlayer.h and AIPlayer.cc to exclude them from the build, or just remove them from the solution altogether so no references get crossed.
06/11/2007 (10:06 am)
OH, I misunderstood, I may still be misunderstanding but...You're copying the AIPlayer.h, and AIPlayer.cc file and putting them as a different name? Then you want to route the code so that it uses your code instead of the AIPlayer code?
Search and replace should do it I think. But you've got to make sure that any reference to ANYTHING in the old aiplayer.h and aiplayer.cc is covered in your new files. Anything in any file that had "AIPlayer::" in front of it has to be present in your new file class.
In addition, there's AIPlayer.h, and AIPlayer.cc in other projects...make sure you're taking care of it for the entire solution. I believe the only other project is "Torque Tool Lib", but you might check the others just in case.
That should do it if I've understood correctly, if you're still having problems, try pasting a few of the build errors. You might also want to tell VS to AIPlayer.h and AIPlayer.cc to exclude them from the build, or just remove them from the solution altogether so no references get crossed.
Torque Owner Aaron Moore