Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 31, 2010, 3:37:40 AM (14 years ago)
Author:
landauf
Message:

merged consolecommands3 branch back to trunk.

note: the console command interface has changed completely, but the documentation is not yet up to date. just copy an existing command and change it to your needs, it's pretty self-explanatory. also the include files related to console commands are now located in core/command/. in the game it should work exactly like before, except for some changes in the auto-completion.

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/controllers/ArtificialController.cc

    r7184 r7284  
    3333
    3434#include "util/Math.h"
    35 #include "core/ConsoleCommand.h"
    3635#include "core/CoreIncludes.h"
    3736#include "core/XMLPort.h"
     37#include "core/command/ConsoleCommand.h"
    3838#include "worldentities/ControllableEntity.h"
    3939#include "worldentities/pawns/Pawn.h"
     
    4747namespace orxonox
    4848{
    49     SetConsoleCommand(ArtificialController, formationflight, true);
    50     SetConsoleCommand(ArtificialController, masteraction, true);
    51     SetConsoleCommand(ArtificialController, followme, true);
    52     SetConsoleCommand(ArtificialController, passivebehaviour, true);
    53     SetConsoleCommand(ArtificialController, formationsize, true);
     49    SetConsoleCommand("ArtificialController", "formationflight",  &ArtificialController::formationflight);
     50    SetConsoleCommand("ArtificialController", "masteraction",     &ArtificialController::masteraction);
     51    SetConsoleCommand("ArtificialController", "followme",         &ArtificialController::followme);
     52    SetConsoleCommand("ArtificialController", "passivebehaviour", &ArtificialController::passivebehaviour);
     53    SetConsoleCommand("ArtificialController", "formationsize",    &ArtificialController::formationsize);
    5454
    5555    static const unsigned int STANDARD_MAX_FORMATION_SIZE = 7;
Note: See TracChangeset for help on using the changeset viewer.