TestCommand.cpp 393 B

1234567891011121314151617181920
  1. #include "server/commands/TestCommand.h"
  2. TestCommand::TestCommand() : BaseCommand("test")
  3. {
  4. }
  5. TestCommand::~TestCommand()
  6. {
  7. cout << "destroy test command" << endl;
  8. }
  9. void TestCommand::execute(ICommandSource& cs, vector<string>& args) const
  10. {
  11. cout << "test command" << endl;
  12. for(unsigned long i = 0; i < args.size(); i++)
  13. {
  14. cout << " - " << args[i] << endl;
  15. }
  16. }