/* describes a command Copyright (C) 2000 Martin Vogt This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation. For more information look at the file COPYRIGHT in this package */ #include "command.h" #include using namespace std; Command::Command(int id) { this->id=id; this->intArg=0; } Command::Command(int id,int arg) { this->id=id; this->intArg=arg; } Command::~Command() { } int Command::getID() { return id; } int Command::getIntArg() { return intArg; } void Command::copyTo(Command* dest) { dest->id=this->id; dest->intArg=this->intArg; } void Command::print(const char* text) { cout << "COMMAND:"<