object.h
来自「一个C编写的足球机器人比赛程序」· C头文件 代码 · 共 32 行
H
32 行
#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 + =
减小字号Ctrl + -
显示快捷键?