court.h
资源名称:pong.rar [点击查看]
上传用户:szsg028
上传日期:2022-08-01
资源大小:12k
文件大小:1k
源码类别:
GDI/图象编程
开发平台:
Visual C++
- #ifndef COURT_H
- #define COURT_H
- #include "entity2D.h"
- class court : public entity2D
- {
- public:
- court();
- ~court();
- void draw(HDC hDC);
- void setMargins(int marginLeft, int marginRight, int marginTop, int marginBottom);
- void setAxisPad1(int valor);
- void setAxisPad2(int valor);
- void resetScores();
- int getScoreP1();
- int getScoreP2();
- int getMarginLeft();
- int getMarginRight();
- int getMarginTop();
- int getMarginBottom();
- int getAxisPad1();
- int getAxisPad2();
- void P1Scores();
- void P2Scores();
- void refreshScores();
- private:
- int m_iMarginLeft;
- int m_iMarginRight;
- int m_iMarginTop;
- int m_iMarginBottom;
- int m_iAxisPad1;
- int m_iAxisPad2;
- int m_iScoreP1;
- int m_iScoreP2;
- int m_iBuffScoreP1;
- int m_iBuffScoreP2;
- HFONT m_fontMarcador;
- HPEN m_penMargenes;
- HBRUSH m_brushFondo;
- HBRUSH m_brushBlanco;
- };
- #endif