📄 piece.cs
字号:
/**********************************/
/* */
/* Author: BUI VAN NGHIA */
/* Email: katatunix@yahoo.com */
/* [May, 2008] */
/* */
/**********************************/
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
namespace Lines2008
{
class Piece : PictureBox
{
public int col, row;
public int color;
public Piece(int i, int j)
{
this.col = i;
this.row = j;
this.Location = SkinConstants.getLocationOfPiece(i, j);
this.Size = new Size(
SkinConstants.BallSize.Width, SkinConstants.BallSize.Height);
}
public void setNormal()
{
this.Image = ClippingImage.bitmapPiece[0, color - 1];
}
public void setHint()
{
this.Image = ClippingImage.bitmapPiece[SkinConstants.BallHint, -color - 1];
}
public void setJumpAt(int frame)
{
this.Image = ClippingImage.bitmapPiece[SkinConstants.BallSelected[frame] - 1, color - 1];
}
public void setAppearenceAt(int frame)
{
this.Image = ClippingImage.bitmapPiece[SkinConstants.BallAppearence[frame] - 1, -color - 1];
}
public void setDestructionAt(int frame)
{
this.Image = ClippingImage.bitmapPiece[SkinConstants.BallDestruction[frame] - 1, color - 1];
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -