📄 508ec49f998f001d1bc0efe2c8487106
字号:
#include "Player.h"
#include "GUI.h"
Player::Player( int player_line,
int player_column)
{
line = player_line;
column = player_column;
sel = false;
}
void Player::setLine(int newLine)
{
line = newLine;
}
int Player::getLine(void)
{
return line;
}
void Player::setColumn(int newColumn)
{
column = newColumn;
}
int Player::getColumn(void)
{
return column;
}
void Player::setSel(int newSel)
{
sel = newSel;
}
int Player::getSel(void)
{
return sel;
}
void paint(void)
{
int x = line * 25;
int y = column * 25;
if(sel){
setColor(GUI_RED);
}
else{
setColor(GUI_GREEN);
}
drawRect(x,y,25,25);
}
Player::~Player()
{
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -