📄 jumpthread.cs
字号:
/**********************************/
/* */
/* Author: BUI VAN NGHIA */
/* Email: katatunix@yahoo.com */
/* [May, 2008] */
/* */
/**********************************/
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace Lines2008
{
class JumpThread
{
Piece piece;
Timer timer;
int frame, len;
public JumpThread(Piece piece)
{
this.piece = piece;
frame = 0;
len = SkinConstants.BallSelected.Length;
timer = new Timer();
timer.Interval = SkinConstants.DelayJump;
timer.Tick += new EventHandler(timer_Tick);
timer.Start();
}
public void timer_Tick(object Sender, EventArgs e)
{
piece.setJumpAt(frame++);
if (frame == len) frame = 0;
}
public void Stop()
{
timer.Stop();
if (piece.color > 0) piece.setNormal();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -