Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 3, 2008, 12:05:15 AM (16 years ago)
Author:
landauf
Message:

CommandExecutor autocompletes now to correct casing (even if you're writing all lowercase or UPPERCASE or sOMethINg eLSe)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core2/src/orxonox/Orxonox.cc

    r955 r972  
    9999            void listen() const
    100100            {
    101                 std::cout << "> -->" << this->ib_->get() << "<--" << std::endl;
     101                std::cout << "> " << this->ib_->get() << std::endl;
    102102            }
    103103            void execute() const
    104104            {
    105 std::cout << "### EXECUTE!" << std::endl;
    106                 CommandExecutor::execute(this->ib_->get());
     105                std::cout << ">> " << this->ib_->get() << std::endl;
     106                if (!CommandExecutor::execute(this->ib_->get()))
     107                    std::cout << "Error" << std::endl;
    107108                this->ib_->clear();
    108109            }
    109110            void hintandcomplete() const
    110111            {
    111 std::cout << "### HINT!" << std::endl;
    112112                std::cout << CommandExecutor::hint(this->ib_->get()) << std::endl;
    113113                this->ib_->set(CommandExecutor::complete(this->ib_->get()));
     
    115115            void clear() const
    116116            {
    117 std::cout << "### CLEAR!" << std::endl;
    118117                this->ib_->clear();
    119118            }
    120119            void removeLast() const
    121120            {
    122 std::cout << "### REMOVELAST!" << std::endl;
    123121                this->ib_->removeLast();
    124122            }
Note: See TracChangeset for help on using the changeset viewer.