Writing testAI code: general C++ question:
1)Suppose I add additional functions in file GlobalAI.cpp, what's the difference in the way to put them:
Code: Select all
void CGlobalAI::ChatMsgPrintf(IGlobalAICallback *cb, const char *fmt, ...)
Code: Select all
ChatMsgPrintf(IGlobalAICallback *cb, const char *fmt, ...)
2)Do I need to put all function prototypes in .h file?
If I don't, functions don't recognize other functions that are ahead of them in the source file...
Should I put them in .h file as "void CGlobalAI::function()" or just "void function()"
Thanks for some help