Code center > Darwinbots Program Source Code

C++ Sources

(1/4) > >>

Borg:
Hello.

Whats the status of the C++ version of DarwinBots?
The sources accessible via SVN doesnt look complete.
There is no (at least) Makefile to build it, and also I heard
that MSVC 6.0 is used to devel tool, there is no project
files aswell.

Another thing.. Why C++ was choosed? Isnt better to use C only
for core programing? Its much esier to understand how code works
Personaly, all that Classes thingies scared me off..

Is there any GUI working yet?
I would be glad to check things out.. and maybe join the project.
(im not C++ fan.. but after a while I will refresh how things works ;)

Griz:
check out the C++ discussion on the wiki:
http://www.darwinbots.com/WikiManual/index...us_plus_version
and feel free to join in.

Numsgil:
Aye, the C++ page is a good place.

As to why C++ over C:

Personally I prefer C.  I really do, that's what I first learned and that's how I think.  That said, there are some things which just work better using classes because it integrates the data structure with how it's implemented.

Math vectors are a good example of this.  Vectors in C and Vecors done using classes really show the power of C++ over C for many things.

That said, I've done my best to keep the code fairly clean and weird C++ operator free.  For what I've coded anyway.  I've had some more C++ savvy programmers work on some things and they tend to like more complex things that boggle my mind.

I can upload my MSVC project files, but I think they're path specific.  That is, they might only work if your source code is set up the same way mine is, in the same place on your C: drive.
As to the GUI: I am presently finishing it up.  Presently there are some controls but they aren't integrated into the engine yet.  So you can slide the slider and click the button but nothing happens.

If you would like to join, great!  I absolutely hate how long it takes to finish up a project like this.  Feel free to message me on AIM or MSN later today if you would like a more real time discussion.

Borg:
Okey.

Seems that I have to check my old C++ sources I wrote years ago,
to refresh C++ knowledge a bit.

Project files usualy are relative to Project dir, so they should work
everywhere. Also, its necessary to have this project files included,
since I cannot create .res files (for GUI) and make all necessary
files to build it up.

(And yes ;) I dodnt code much of C++ under WIN32, basicaly
I stik to API + C only, so it will take a little time for me to refresh
the knowledge).

AIM or MSN?? Sorry.. im not using any of those services.
I prefer IRC because from the begining, it provided one to many
communication, so needed in discussing projects ;)

I have jabber account too.. If someone is not familiar with IRC.

Numsgil:
I don't have IRC or jabber... :/

There aren't any .res files, everything is (or should be anyway) .h and .cpp.  This is managed through the magic of Fox GUI, which is the cross platform GUI library the C++ port uses.

I'll upload my project file later today, after I clean them up a bit.

The code is built to be cross platform, so there's next-to-zero windows specific code (a few #defines for when there is, things like that).  If you know ANSI C fairly well, it shouldn't take more than a few hours to catch the gist of 90% of the code or so.

Of course, that also assumes you're familiar with certain things like math vectors, etc...

Navigation

[0] Message Index

[#] Next page

Go to full version