I'm a fairly expeirenced C++ coder and i have a new project in mind. I am interested in creating a game similar to RoboCode. This game allows you to create java programs that represent a robot on a playing field. I'm wish to make a similar game for C++ but i am not sure how to interact between the programs. I need to know how to transmit information from the "server program" to the "client programs. I was wondering how to do this. Thanks in advance.
Use the WinSock libraries
not quite what i wanted
I was more interested in making this work in a local setting, with out using the internet, but I will try it with the net first. THanks man.
In this particular subject I am quite an expert. I made a similar project when i graduated high school.
Each robot was a DLL file which contained a RobotMain method which got a IRobot* (pointer to the robot interface) as argument.
The interface contained all methods needed (Move, Pause, Scan, Shoot etc.)
Each RobotMain() method ran in its own thread, allowing the game engine and other robots to execute as well.
As for exchanging information, passing pointers works just fine because the DLL runs in the same virtual address space as the main program.
thanks man, thats exactly what i wanted to know. Time to get started!