inheritance vs composition

06/18/2013 12:33 Smaehtin#16
If you want a good CO related C++ reference, you should just take a look at the Eudemons client/server source code, it's publicly available. Don't think it's allowed to be posted here because of copyrights though
06/18/2013 13:52 Super Aids#17
Quote:
Originally Posted by Smaehtin View Post
If you want a good CO related C++ reference, you should just take a look at the Eudemons client/server source code, it's publicly available. Don't think it's allowed to be posted here because of copyrights though
I think it's already posted in the EO section.
06/18/2013 17:55 Korvacs#18
Quote:
Originally Posted by Smaehtin View Post
If you want a good CO related C++ reference, you should just take a look at the Eudemons client/server source code, it's publicly available. Don't think it's allowed to be posted here because of copyrights though
Worth noting that its a good CO source, but the code is awful.
06/18/2013 18:12 Super Aids#19
Quote:
Originally Posted by Smaehtin View Post
If you want a good CO related C++ reference, you should just take a look at the Eudemons client/server source code, it's publicly available. Don't think it's allowed to be posted here because of copyrights though
Or this:
[Only registered and activated users can see links. Click Here To Register...]

And this:
[Only registered and activated users can see links. Click Here To Register...]
06/18/2013 19:21 go for it#20
Quote:
Originally Posted by Super Aids View Post
Or this:
[Only registered and activated users can see links. Click Here To Register...]

And this:
[Only registered and activated users can see links. Click Here To Register...]
that's what im actually doing :D still trying to fully understand hybrids, some stuff isn't clear and im so tempted to ask but still trying more on my own XD
06/18/2013 21:02 CptSky#21
I've nerver really looked at Hybrid converted source, but bone's one isn't a good reference.
06/18/2013 21:08 InfamousNoone#22
mine was aimed at just experimenting with managed c++, I wouldn't call it a goof ref' either lol
06/18/2013 21:11 © Haydz#23
Quote:
Originally Posted by CptSky View Post
I've nerver really looked at Hybrid converted source, but bone's one isn't a good reference.
Thank god somebody else agrees with me.

If I ever get round to actually furthering my c++ source I may just release it here/make it open source, I don't have the finances or resources to run a server myself.
06/19/2013 01:00 Smaehtin#24
Quote:
Originally Posted by Korvacs View Post
Worth noting that its a good CO source, but the code is awful.
The code is still 1000-3000% better than 99.99999999999998% of anything ever released here on epvp :)
06/19/2013 01:19 CptSky#25
Quote:
Originally Posted by © Haydz View Post
Thank god somebody else agrees with me. [...]
Anybody saying that bone's source is good, or fine, is a poor C++ developer.

Quote:
Originally Posted by Smaehtin View Post
The code is still 1000-3000% better than 99.99999999999998% of anything ever released here on epvp :)
Mhm, I wouldn't say 1000-3000% :rolleyes: It's far from being exceptional. TQ's code is fine, and the code is only good as reference.

Quote:
Originally Posted by InfamousNoone View Post
mine was aimed at just experimenting with managed c++, I wouldn't call it a goof ref' either lol
Well, I think there is NO good reference of CO2 source. Plus, if it's Managed-C++, it's kind of unrelated.
06/19/2013 01:32 Smaehtin#26
Quote:
Originally Posted by CptSky View Post
Mhm, I wouldn't say 1000-3000% :rolleyes: It's far from being exceptional. TQ's code is fine, and the code is only good as reference.
Have you actually downloaded and looked at most of the releases here on epvp? Most, 9/10 at least, of the private servers are ridiculously poorly designed and written. I'm not judging though, designing and coding a private server isn't really a one or two man job.
06/19/2013 01:36 Super Aids#27
Quote:
Originally Posted by CptSky View Post
Well, I think there is NO good reference of CO2 source. Plus, if it's Managed-C++, it's kind of unrelated.
The one I referenced was not managed C++, it was native C++ and was a conversion of the 5017 source.
06/19/2013 01:51 Korvacs#28
Quote:
Originally Posted by Smaehtin View Post
The code is still 1000-3000% better than 99.99999999999998% of anything ever released here on epvp :)
Are you kidding? Its good in the sense that its the closest thing to the legit conquer source code available, but have you actually ever tried going through it? Its a pretty awful example of C++, beaten only by Bone's source, and that's saying something.
06/19/2013 13:38 CptSky#29
Little example for go for it, from my EoF emulator. It's only the headers and it's not complete, but the general structure of inheritance is there.

No shared method for the moment.

Entity:

AdvancedEntity:

Npc:

Monster:

Player:
06/19/2013 13:44 go for it#30
well umm sorry for interrupting you guys but umm what should i be doing right now when you all insist that the 3 c++ sources out there sucks :D ?
edit : thanks cptsky i like the way you written those classes, the encapsulation and protected modifiers :D
edit : was just wondering what you folks mean by it's not good source ? is it the socket/networking or just the whole design ? how far could they be from each others at the sockets , isn't all of them using winsoc or there is some better custom sockets ? please just gimme more details :)