?? 300221ae998f001d1bc0efe2c8487106
字號:
#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 Player::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 + -