26 (edited by kittyPL 2012-12-09 03:19:00)

Re: [MODs] How to mod? C++ Tutorial for newbies

I downloaded doxygen and created documentation, but no description was there :C I mean, no argument explaination, generally nothing from comments... If someone is a bit more advanced in using doxygen or anything like this, he can make it wink It would be really nice smile (Ofc, it can be hosted on free servers, like 000webhost and tk domain, but I hope it can be put as teeworlds.com subdomain, like doc.teeworlds.com or something, if it's well made)

C++/Java my life ^^
If you like dislike button click it
NOW!

27

Re: [MODs] How to mod? C++ Tutorial for newbies

Use Natural docs and u will see some minor documentation

28

Re: [MODs] How to mod? C++ Tutorial for newbies

i Really Loved it<3 Please Countinue The Tutorial

29

Re: [MODs] How to mod? C++ Tutorial for newbies

tell me what you'd like to know

#yemDX is a known troll

30

Re: [MODs] How to mod? C++ Tutorial for newbies

Edit your first post so i dont need to search for the answer in other pages

server.cpp
network_server.cpp
config_variables.h

And what the difference between .cpp and .h ?

31

Re: [MODs] How to mod? C++ Tutorial for newbies

xXDARKXx wrote:

And what the difference between .cpp and .h ?

.h means heading.
actually, you can write not only headings of functions in it.
Usually, in .h files you have class description

/*Classname.h*/
class CClassName
{
      int m_Variable;
      float m_aVariables[SOME_CONST];
      CClassName();
      DoSmth(void action);
}

then in .cpp file you should write 'more':

/*Classname.cpp*/
CClassName::CClassName()
{
     m_Variable = 0;
     for(int i=0; i<SOME_CONST;i++)
          m_aVariales[i] = 0.0;
}

CClassName::DoSmth(void action)
{
      printf("the action is: %d", (int) action);
}

32

Re: [MODs] How to mod? C++ Tutorial for newbies

network_server.cpp is too difficult to understand for you i think, but
server.cpp and
config_variables.h

is a good idea.

#yemDX is a known troll

33 (edited by Shahan 2013-06-01 23:20:30)

Re: [MODs] How to mod? C++ Tutorial for newbies

btw, how about explanation of variables' names prefix?
m_Variable - the member of Class, Struct
pVariable - the pointer
aVariables - array
g_Variable - global namespace
m_apVariable - member of class or struct and also array of pointers
CName means the name of class

34

Re: [MODs] How to mod? C++ Tutorial for newbies

ok, you've done it, thx^^

#yemDX is a known troll

35

Re: [MODs] How to mod? C++ Tutorial for newbies

s_Variable - static variable

36 (edited by xXDARKXx 2013-06-02 09:45:36)

Re: [MODs] How to mod? C++ Tutorial for newbies

what is the .hpp
fake_server.cpp

37

Re: [MODs] How to mod? C++ Tutorial for newbies

xXDARKXx wrote:

what is the .hpp

Heading plus plus (means headings for cpp file). Now mostly used .h because it's shorter smile no difference in teeworlds

38

Re: [MODs] How to mod? C++ Tutorial for newbies

Put "hpp" instead of "h" if you have an C++ file because an editor can't make the difference between C and C++ for syntaxe highlighting.