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

📄 animationselect.java

📁 一款JAVA款的跳棋
💻 JAVA
字号:
package org.yushang.jumpchess.Interface;


import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Point;
import org.yushang.jumpchess.pkg.Chess;

public class AnimationSelect extends Animation {
	private Drawer drawer;
	private Chess chess;
	private Point point;
	private int BigOffset = 0;
	
	public AnimationSelect(Drawer drawer, Chess chess, Point point) {
		this.drawer = drawer;
		this.chess = chess;
		this.point = new Point(point.x, point.y);
	}
	
	public void Draw(GC gc) {
		drawer.DrawChess(gc, chess.GetColor(), point, BigOffset / 6 - 1);		
	}

	public boolean Run() {
		BigOffset += 1;
		BigOffset %= 18;
		return true;
	}
 
	
}

⌨️ 快捷键说明

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