attach.h
来自「一个三维打斗游戏」· C头文件 代码 · 共 32 行
H
32 行
// (C) Copyright 1996 by Anthony J. Carin. All Rights Reserved.
#ifndef ATTACH_H
#define ATTACH_H
#include "baseobj.h"
class attachment
{
public:
attachment(coordinate& offset);
void setto(view& c);
void draw();
void attachto(baseobject *obj) { m_attachedto = obj; }
void setxoff(direction& d) { xoff = d; }
void setyoff(direction& d) { yoff = d; }
void setzoff(direction& d) { zoff = d; }
private:
baseobject *m_attachedto;
coordinate m_offset;
direction xoff;
direction yoff;
direction zoff;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?