pretty complicated

This is a discussion on pretty complicated within the C++ Programming forums, part of the General Programming Boards category; I'm a fairly expeirenced C++ coder and i have a new project in mind. I am interested in creating a ...

  1. #1
    Registered User
    Join Date
    Aug 2002
    Posts
    6

    Post pretty complicated

    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.

  2. #2
    . Driveway's Avatar
    Join Date
    May 2002
    Posts
    469
    Use the WinSock libraries

  3. #3
    Soaponarope
    Guest

    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.

  4. #4
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Ahh!
    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.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  5. #5
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    As for exchanging information, passing pointers works just fine because the DLL runs in the same virtual address space as the main program.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  6. #6
    soaponarope
    Guest

    thanks

    thanks man, thats exactly what i wanted to know. Time to get started!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Complicated member objects that depend on `this`
    By drrngrvy in forum C++ Programming
    Replies: 3
    Last Post: 11-12-2006, 09:48 PM
  2. Sockets, multi home, multicast, security, complicated issue
    By ekymk in forum Networking/Device Communication
    Replies: 6
    Last Post: 08-13-2004, 03:12 AM
  3. Pretty simple for you good programers...
    By eazhar in forum C++ Programming
    Replies: 5
    Last Post: 06-28-2002, 06:51 PM
  4. I need help with a pretty simple program please
    By Unregistered in forum C Programming
    Replies: 5
    Last Post: 05-29-2002, 11:53 AM
  5. Pretty Optimistic
    By mithrandir in forum A Brief History of Cprogramming.com
    Replies: 42
    Last Post: 11-06-2001, 10:27 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21