pad.h
资源名称:pong.rar [点击查看]
上传用户:szsg028
上传日期:2022-08-01
资源大小:12k
文件大小:0k
源码类别:
GDI/图象编程
开发平台:
Visual C++
- #ifndef PAD_H
- #define PAD_H
- #include "court.h"
- class pad : public entity2D
- {
- public:
- pad();
- ~pad();
- void draw(HDC hDC);
- void move(float dt);
- void movingUp();
- void movingDown();
- void movingNone();
- void setVelocidad(float valor);
- void setCancha(court* cancha);
- void centrarEnCancha();
- private:
- float m_fVelocidad;
- court* m_Cancha;
- HBRUSH m_brushBlanco;
- HPEN m_penBlanco;
- bool m_bMovingUp;
- bool m_bMovingDown;
- };
- #endif