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

📄 rrbetimedelementfactory.java

📁 RoboRally Board editor 是一个用来创建战棋类游戏的Java程序。
💻 JAVA
字号:
import javax.swing.*;import java.awt.*;import java.awt.image.*;public class RRBETimedElementFactory extends RRBEElementFactory {        public RRBETimedElementFactory(String typeId				   , RRBEMainWindow w				   , String name				   , String imageName				   , String timeImageNameBase				   , String timeImageNameSufix				   , int level				   , boolean requireWall				   , boolean scaleToWall) {	this.typeId = typeId;	window = w;	this.images = new ImageIcon[24];	this.images[0] = new ImageIcon(RRBEGlobal.curthemepath + imageName);	for (int i = 0; i < 3; i++)	  this.images[i+1] = rotateImage(this.images[i]);		for (int t = 1; t <= 5; t++) {	    this.images[t*4] = new ImageIcon(RRBEGlobal.curthemepath 					       + timeImageNameBase					       + Integer.toString(t)					       + timeImageNameSufix);	    for (int i = 0; i < 3; i++)		this.images[t*4+i+1] = rotateImage(this.images[t*4+i]);	}		this.name = name;	this.level = level;	this.requireWall = requireWall;	this.scaleToWall = scaleToWall;    }    public RRBEElement createElement() {	RRBEElement e = new RRBETimedElement(typeId, name, level, images					     , window.currentRotation()					     , requireWall					     , scaleToWall);	for (int i = 0; i < 5; i++)	    e.setActivePhase(i,window.getActivePhase(i));	return e;    }}

⌨️ 快捷键说明

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