els.h
来自「一个简单的飞行射击类小游戏 类是雷电 新手不足之处请指教」· C头文件 代码 · 共 47 行
H
47 行
// Els.h: interface for the CEls class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_ELS_H__1A14EC46_EAD3_4B19_B8B5_E35F3255C1D8__INCLUDED_)
#define AFX_ELS_H__1A14EC46_EAD3_4B19_B8B5_E35F3255C1D8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CEls
{
public:
CPoint m_Hotp;
CPoint m_Oldp;
UINT m_nType; //Els type
/* 1: *****
2: ***
*
*
*
3: *****
* *
* *
4: ***
***
5: **
** */
UINT m_nOldType;
UINT m_nMoveType; //move type
public:
CEls();
CEls(UINT nType, int x, int y);
virtual ~CEls();
public:
int GetPointNum();
CPoint GetPoint(int num, BOOL b = TRUE);
void SetMoveType(int off);
void SetMoveType();
void SetHotPoint(int xOff, int yOff);
CEls operator=(const CEls &Es);
};
#endif // !defined(AFX_ELS_H__1A14EC46_EAD3_4B19_B8B5_E35F3255C1D8__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?