Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1784 for code/trunk/src/core


Ignore:
Timestamp:
Sep 15, 2008, 10:54:25 AM (16 years ago)
Author:
rgrieder
Message:
  • removed obsolete Convert.h includes (possibly from old XML loading)
  • replaced tabs in audio library, plus minor code cleanup because removing the tabs screwed layout
  • replaced all "#define name number" with "const Type name = number" if possible
Location:
code/trunk/src/core
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/ArgumentCompletionListElement.h

    r1505 r1784  
    3535#include <list>
    3636
    37 #define ACL_MODE_NORMAL    1
    38 #define ACL_MODE_LOWERCASE 2
    39 #define ACL_MODE_DISPLAY   4
    4037
    4138namespace orxonox
    4239{
     40    const int ACL_MODE_NORMAL    = 1;
     41    const int ACL_MODE_LOWERCASE = 2;
     42    const int ACL_MODE_DISPLAY   = 4;
     43
    4344    typedef std::list<ArgumentCompletionListElement> ArgumentCompletionList;
    4445
  • code/trunk/src/core/CommandExecutor.cc

    r1747 r1784  
    3030#include "ConsoleCommand.h"
    3131#include "util/String.h"
    32 #include "util/Convert.h"
    3332#include "util/Debug.h"
    3433#include "Identifier.h"
  • code/trunk/src/core/ConfigFileManager.cc

    r1747 r1784  
    3434#include "util/String.h"
    3535
    36 #define CONFIG_FILE_MAX_LINELENGHT 1024
    3736
    3837namespace orxonox
    3938{
     39    const int CONFIG_FILE_MAX_LINELENGHT  = 1024;
     40    const char* const DEFAULT_CONFIG_FILE = "default.ini";
     41
    4042    SetConsoleCommandShortcutExtern(config).argumentCompleter(0, autocompletion::configvalueclasses()).argumentCompleter(1, autocompletion::configvalues()).argumentCompleter(2, autocompletion::configvalue());
    4143    SetConsoleCommandShortcutExtern(tconfig).argumentCompleter(0, autocompletion::configvalueclasses()).argumentCompleter(1, autocompletion::configvalues()).argumentCompleter(2, autocompletion::configvalue());
  • code/trunk/src/core/ConfigFileManager.h

    r1747 r1784  
    3838
    3939#include "util/Math.h"
    40 
    41 #define DEFAULT_CONFIG_FILE "default.ini"
    4240
    4341namespace orxonox
  • code/trunk/src/core/ConfigValueContainer.cc

    r1747 r1784  
    4141#include "Identifier.h"
    4242
    43 #define MAX_VECTOR_INDEX 255 // to avoid up to 4*10^9 vector entries in the config file after accidentally using a wrong argument
    4443
    4544
    4645namespace orxonox
    4746{
     47    const int MAX_VECTOR_INDEX  = 255; // to avoid up to 4*10^9 vector entries in the config file after accidentally using a wrong argument
     48
    4849    /**
    4950        @brief Initializes the ConfigValueContainer with defaultvalues.
  • code/trunk/src/core/Functor.h

    r1747 r1784  
    3636#include "util/Debug.h"
    3737
    38 #define MAX_FUNCTOR_ARGUMENTS 5
    3938
    4039namespace orxonox
    4140{
     41    const int MAX_FUNCTOR_ARGUMENTS = 5;
     42
    4243    enum FunctionType
    4344    {
  • code/trunk/src/core/IRC.cc

    r1747 r1784  
    3535#include "util/Convert.h"
    3636
    37 #define IRC_TCL_THREADID 1421421421
    3837
    3938namespace orxonox
    4039{
     40    static const unsigned int IRC_TCL_THREADID  = 1421421421;
     41
    4142    SetConsoleCommand(IRC, say,  true).accessLevel(AccessLevel::User);
    4243    SetConsoleCommand(IRC, msg,  false).accessLevel(AccessLevel::User);
  • code/trunk/src/core/TclThreadManager.cc

    r1747 r1784  
    4343#include "util/Convert.h"
    4444
    45 #define TCLTHREADMANAGER_MAX_QUEUE_LENGTH 100
    46 #define TCLTHREADMANAGER_MAX_CPU_USAGE 0.50
    4745
    4846namespace orxonox
    4947{
     48    const int TCLTHREADMANAGER_MAX_QUEUE_LENGTH = 100;
     49    const int TCLTHREADMANAGER_MAX_CPU_USAGE    = 0.50;
     50
    5051    SetConsoleCommandShortcutAlias(TclThreadManager, execute, "tclexecute").argumentCompleter(0, autocompletion::tclthreads());
    5152    SetConsoleCommandShortcutAlias(TclThreadManager, query,   "tclquery"  ).argumentCompleter(0, autocompletion::tclthreads());
Note: See TracChangeset for help on using the changeset viewer.