Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 21, 2008, 1:33:42 AM (16 years ago)
Author:
landauf
Message:

big commit, but not much changes in code:

  • put CommandEvaluation into it's own .cc and .h files
  • put some basic ConsoleCommands into ConsoleCommandCompilation.cc and .h
  • created a new class, ConsoleCommand, inheriting from ExecutorStatic, implementing all command-related features that were located in the Executor until now (at the moment only accessLevel_, but more will come - from reto and me)
  • renamed ConsoleCommand-macros to SetConsoleCommand (all related macros were changed the same way)
  • added a new command named "killdelays", that kills all delayed commands. helpful to stop disco ;)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/src/core/IRC.cc

    r1276 r1341  
    3939namespace orxonox
    4040{
    41     ConsoleCommand(IRC, say,  AccessLevel::User, true);
    42     ConsoleCommand(IRC, msg,  AccessLevel::User, false);
    43     ConsoleCommand(IRC, nick, AccessLevel::User, false);
     41    SetConsoleCommand(IRC, say,  true).setAccessLevel(AccessLevel::User);
     42    SetConsoleCommand(IRC, msg,  false).setAccessLevel(AccessLevel::User);
     43    SetConsoleCommand(IRC, nick, false).setAccessLevel(AccessLevel::User);
    4444
    4545    IRC* instance_irc = &IRC::getInstance();
Note: See TracChangeset for help on using the changeset viewer.