📄 ball.h
字号:
// Ball.h: interface for the CBall class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_BALL_H__65F50150_6008_49A9_B324_230605B351C6__INCLUDED_)
#define AFX_BALL_H__65F50150_6008_49A9_B324_230605B351C6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "mmsystem.h"
class CBall
{
public:
void Reset();
virtual void Failure();
virtual bool MoveEx();
virtual void ResetEx();
void SetBarPos(int,int);
bool Move();
void FollowBar(int);
void DrawBall(bool);
void InitBall(CDC*,CRect*,CStatic*);
CBall();
virtual ~CBall();
CPoint Pos;
CPoint PrePos;
int m_BelowBarPos,m_AboveBarPos,y_Above,y_Below;
int delta_x,delta_y;
bool x_dir,y_dir;
CStatic * m_news;
CRect * WinRect;
private:
CDC * p_WinDC;
protected:
virtual void InitOther();
bool Analyse(int );
};
#endif // !defined(AFX_BALL_H__65F50150_6008_49A9_B324_230605B351C6__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -