⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 piece.h

📁 MONA是为数不多的C++语言编写的一个很小的操作系统
💻 H
字号:
#ifndef __REVERSI_PIECE_H__#define __REVERSI_PIECE_H__#include <gui/System/Mona/Forms/Control.h>using namespace System;using namespace System::Drawing;using namespace System::Mona::Forms;class Piece : public Control{protected:    int state;    int x;    int y;    _P<Bitmap> white;    _P<Bitmap> black;public:    Piece();    Piece(int state, int x, int y, _P<Bitmap> white, _P<Bitmap> black);    virtual ~Piece();    virtual void SetState(int state) { this->state = state; this->Refresh(); }    virtual int GetState() const { return this->state; }    virtual int GetX() const { return this->x; }    virtual int GetY() const { return this->y; }protected:    virtual void OnPaint();    virtual void OnMouseUp(_P<MouseEventArgs> e);};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -