📄 object.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 + -