Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 3 and Version 4 of code/FAQ


Ignore:
Timestamp:
Sep 25, 2008, 1:41:54 AM (16 years ago)
Author:
landauf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/FAQ

    v3 v4  
    55----
    66
    7 === Question Question Question? ===
    8 Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer.
     7=== Where's the makefile? ===
     8We use [wiki:CMake] as build system. Read [wiki:CMake the wikipage] for more information.
     9
     10=== This Styleguide shit is a joke, right? My code just has to work! ===
     11No, you're code has to work AND be readable and understandable. Of course every piece of code can be understood somehow, but we don't want to puzzle. So, please, write your code in a common form. The [wiki:c++_styleguide styleguide] helps you on this topic.
     12
     13=== I can't commit anything ===
     14You have to [wiki:SVN checkout] the repository via https. Http is anonymous and therefore can't be used to commit something.
     15
     16=== What's that COUT(x) crap? ===
     17COUT(level) is a macro that works almost exactly like std::cout. The number inside the parentheses denotes the level of the output. Read [wiki:howto/Output this] for more information.
     18
     19=== I don't get no output in my console/logfile/shell ===
     20First you have to use [wiki:howto/Output COUT] to send output to those devices. Then you have to ensure the maximal output level of the concerned device is >= the level of your output. You can configure those maximal levels in the [wiki:howto/ConfigFile config file].
     21
     22There's a possible third problem: If your output comes too early (before the game has started) and the level of your output is > 2, it wont be displayed by default. If it's just for debuging purpose, change the value temporarily in util/OutputHandler.cc (constructor). If your output is really important for the game, use a lower level.
     23
     24=== I have to call a function requesting a '!MultiType' but all I've got is an int/float/string/whatever ===
     25Just pass your variable to the function. [wiki:MultiType] is a class accepting almost all types of variables. C++ will do an implicit conversion. That's exactly the point about the !MultiType: no matter what you've got, you can call that fu**ing function.
     26
     27=== I have to calculate something complicated, are there some helping functions? ===
     28Probably not, but check out [wiki:Math] to be sure. If your calculation is of common interest, please put it into util/Math.h too.
     29
     30=== I have to manipulate a string, are there some helping functions? ===
     31Maybe, check out [wiki:String] to get an overview of the existing functions. If your stringmanipulation function is of common interest, please put it into util/String.h too.
     32
     33=== I want to split a string into multiple tokens ===
     34Use [wiki:SubString].
     35
     36=== How can I convert a string into a number? ===
     37Use [wiki:Convert] or [wiki:MultiType].
     38
     39=== How can I convert typeX into typeY? ===
     40Use [wiki:Convert] or [wiki:MultiType] too, it's almighty.