00001 /* -*- Mode: C++ -*- 00002 * $Id: CoachSayCommand.cc,v 1.1 2006/09/06 18:03:22 frehe Exp $ 00003 * 00004 * 00005 * COPYRIGHT INFORMATION 00006 * 00007 * This file is part of RoboSoc created by Fredrik Heintz <frehe@ida.liu.se> 00008 * Copyright (C) 1999, 2000 Fredrik Heintz, Linköping University, Sweden 00009 * 00010 * You are allowed to modify and use this code as long as you retain this 00011 * notice. If you make any changes or have any comments I would appreciate 00012 * it if you send me a message. For more information, please see 00013 * http://www.ida.liu.se/~frehe/RoboCup/RoboSoc/ 00014 * 00015 * 00016 * IDENTIFICATION 00017 * 00018 * Filename: CoachSayCommand.cc 00019 * Unitname: Library 00020 * $Revision: 1.1 $ 00021 * Created by: Fredrik Heintz 2004-09-09 00022 * Last modified by $Author: frehe $ $Date: 2006/09/06 18:03:22 $ 00023 * 00024 * 00025 * HISTORY 00026 * 00027 * $Log: CoachSayCommand.cc,v $ 00028 * Revision 1.1 2006/09/06 18:03:22 frehe 00029 * Moved files from Library to BasicSystem. 00030 * 00031 * Revision 1.1 2004/09/08 22:16:16 frehe 00032 * Added an unquoted say message needed by the coach and trainer. 00033 * 00034 */ 00035 00048 #include "CoachSayCommand.h" 00049 00050 00051 RS_BEGIN_NAMESPACE 00052 00053 00054 CoachSayCommand::CoachSayCommand(const std::string& msg) 00055 : CoachOrTrainerCommand(CMD_Say), 00056 message(msg) 00057 { 00058 } 00059 00060 00061 CoachSayCommand::~CoachSayCommand() 00062 { 00063 } 00064 00065 00066 const std::string CoachSayCommand::serverString() const 00067 { 00068 return "(say " + message + ")"; 00069 } 00070 00071 00072 CoachSayCommand* CoachSayCommand::clone() const 00073 { 00074 return new CoachSayCommand(*this); 00075 } 00076 00077 00078 RS_END_NAMESPACE
1.3-rc3