I have 3 AI files that have the same "decideAction(game)" function
In the main file running the game:
In C++ this was easy as I just used namespaces
namespace AI_A {
#include "AI_A.cpp"
}
namespace AI_B {
#include "AI_B.cpp"
}
namespace AI_C {
#include "AI_C.cpp"
}
and in the game I did
if(turn == 0) { AI_A:decideAction(game); } etc....
Is there a way for me to do this for C? Since C doesn't have namespaces or classes?
Each of the AI files have lots of functions in themselves and a decideAction function, so I can't just #include all the AI files and rename decideAction, cos 2 different AI files may have the same function names/global variables.
Thanks!