OK to finish up the my space simulator ( and free up time to help with other FSO code duties:) ) I need to wrap up my remote control system. I need an opinion.
Should I:
A) statically compile my protocol/message types into the code with a predefined number of messages. For example:
a. Shutdown FS2
b. Start Mission X
c. Start Random Mode
d. etc.
Or
B) create a protocol loader, using INI file or XML to set up message types and their respective actions (function calls or FS2 POSTs). The question here is does C++ allow me to convert a char or string into a function call? VB can do this. Or is this even worth it.
I think that A while not as flexible will be more reliable and almost as easy.
blasterpal