?? 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 + -