Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

soccerinput.h

Go to the documentation of this file.
00001 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*-
00002    this file is part of rcssserver3D
00003    Fri May 9 2003
00004    Copyright (C) 2003 Koblenz University
00005    $Id: soccerinput.h,v 1.1 2004/12/31 11:30:30 rollmark Exp $
00006 
00007    This program is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as published by
00009    the Free Software Foundation; version 2 of the License.
00010 
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015 
00016    You should have received a copy of the GNU General Public License
00017    along with this program; if not, write to the Free Software
00018    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019 */
00020 #ifndef SOCCERINPUT_H
00021 #define SOCCERINPUT_H
00022 
00023 #include <kerosin/inputserver/inputitem.h>
00024 #include <kerosin/inputserver/inputcontrol.h>
00025 #include <oxygen/simulationserver/netclient.h>
00026 
00027 class SoccerInput : public kerosin::InputItem
00028 {
00029 public:
00030     enum ECmds
00031         {
00032             CmdUser    = kerosin::InputControl::CmdUser,
00033             CmdKickOff = CmdUser + 1
00034         };
00035 
00036 public:
00037     SoccerInput();
00038     virtual ~SoccerInput();
00039 
00043     virtual void ProcessInput(const kerosin::InputServer::Input& input);
00044 
00048     virtual void OnLink();
00049 
00051     virtual void OnUnlink();
00052 
00053 protected:
00054     void SendCommand(const std::string& cmd);
00055 
00056 protected:
00058     boost::shared_ptr<oxygen::NetClient> mMonitorClient;
00059 };
00060 
00061 DECLARE_CLASS(SoccerInput);
00062 
00063 #endif // SOCCERINPUT_H

Generated on Thu Apr 6 15:25:40 2006 for rcssserver3d by  doxygen 1.4.4