📄 obstacle.h
字号:
//////////////////////////////////////////////////////////////////////////////// Filename : Obstacle.h// Written by : reiot@ewestsoft.com// Description ://////////////////////////////////////////////////////////////////////////////#ifndef __OBSTACLE_H__#define __OBSTACLE_H__#include "Object.h"//////////////////////////////////////////////////////////////////////////////// Obstacle Type//// 阿 窍困 厘局拱 辆幅付促 弥措 256 啊瘤啊 粮犁茄促.//(巩捞唱 胶困摹, 窃沥捞 256俺甫 逞绢哎 荐 乐阑鳖?)//////////////////////////////////////////////////////////////////////////////typedef BYTE ObstacleType_t;const uint szObstacleType = sizeof(ObstacleType_t);//////////////////////////////////////////////////////////////////////////////// class Obstacle;//// 鸥老俊 辆加登绰 按眉肺辑, 农府贸狼 捞悼阑 规秦窍搁辑 惑怕甫 爱绊// 乐绰 Object狼 窍困 努贰胶 按眉捞促. 巩捞唱 窃沥, 胶困摹 鞍篮 巴甸捞// 咯扁俊 加茄促.//////////////////////////////////////////////////////////////////////////////class Obstacle : public Object {public: enum ObstacleClass { OBSTACLE_CLASS_DOOR , OBSTACLE_CLASS_SWITCH , OBSTACLE_CLASS_TRAP };public: Obstacle(ObjectID_t objectID) throw() : Object(objectID) {} virtual ~Obstacle() throw() {} // methods from Objectpublic: virtual ObjectClass getObjectClass() const throw() { return OBJECT_CLASS_OBSTACLE; } virtual ObjectPriority getObjectPriority() const throw(Error) { return OBJECT_PRIORITY_OBSTACLE; } virtual string toString() const throw() = 0;// own methodspublic: virtual ObstacleClass getObstacleClass() const throw() = 0; virtual ObstacleType_t getObstacleType() const throw() = 0;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -