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

📄 object.h

📁 一个C编写的足球机器人比赛程序
💻 H
字号:
#ifndef OBJECT_H
#define OBJECT_H

#include "CppConst.h"

class Object
{
protected:
  ObjectTypeT objectType;             /*!< Type of this object               */
  VecPosition pos;		              /*!< Global position in the field      */  
  VecPosition vel;
public: 
  /*! abstract function that should be defined in a subclass */

  // non-standard get and set methods (all defined here) 

  // standard get and set methods
  void        setType(ObjectTypeT o);
  ObjectTypeT getType() const;

  void        setPosition(VecPosition p);
  VecPosition getPosition() const;

  void        setVelocity(VecPosition p);
  VecPosition getVelocity() const;

};




#endif 

⌨️ 快捷键说明

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