⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 timeable.h

📁 在LINUX下运行的仿真机器人服务器源代码
💻 H
字号:
// -*-c++-*-/***************************************************************************                                   timeale.h            The timeable class is an abstract base class used by a timer                             -------------------    begin                : AUG-2002    copyright            : (C) 2002 by The RoboCup Soccer Server                            Maintenance Group.    email                : sserver-admin@lists.sourceforge.net ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU LGPL as published by the Free Software  * *   Foundation; either version 2 of the License, or (at your option) any  * *   later version.                                                        * *                                                                         * ***************************************************************************/#ifndef TIMEABLE_H#define TIMEABLE_H/** The timeable class is an abstract class which specifies the virtual methods    that should be implemented by the subclass. */class Timeable{public:  void recvFromClients()   { doRecvFromClients();   }  void newSimulatorStep()  { doNewSimulatorStep();  }    void sendSenseBody()     { doSendSenseBody();     }      void sendVisuals()       { doSendVisuals();       }     void sendCoachMessages() { doSendCoachMessages(); }       bool sendThink()         { return doSendThink();  }         void quit()              { doQuit();              }     	protected:  // virtual methods that should be defined in subclass  virtual void doRecvFromClients()   = 0;  virtual void doNewSimulatorStep()  = 0;  virtual void doSendSenseBody()     = 0;    virtual void doSendVisuals()       = 0;   virtual void doSendCoachMessages() = 0;  virtual bool doSendThink()         = 0;  virtual void doQuit()              = 0;};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -