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

📄 rrbetimedelement.java

📁 RoboRally Board editor 是一个用来创建战棋类游戏的Java程序。
💻 JAVA
字号:
import java.awt.*;import javax.swing.*;import java.awt.image.*;public class RRBETimedElement extends RRBEElement {        public RRBETimedElement(String typeId, String n,int l			    , ImageIcon[] i, int r			    , boolean requireWall			    , boolean scaleToWall) {	super(typeId, n,l,i,r,requireWall, scaleToWall);    }    public RRBETimedElement(String typeId, String n,int l, ImageIcon[] i, int r) {	super(typeId, n,l,i,r,false, true);    }        public void drawTo(Graphics g, int x, int y		       , int w, int h		       , int ox, int oy, int ow, int oh		       , ImageObserver i) {	super.drawTo(g,x,y,w,h,ox,oy,ow,oh,i);	if (scaleToWall)	    for (int j = 0; j < 5; j++) {		if (phases[j]) {		    ImageIcon tI = image[4+j*4+rotation];		    g.drawImage(tI.getImage(),				x,y,w,h,0,0				,tI.getIconWidth()				,tI.getIconHeight()				, i);		}			    }	else	    for (int j = 0; j < 5; j++) {		if (phases[j]) {		    ImageIcon tI = image[4+j*4+rotation];		    g.drawImage(tI.getImage(),				ox,oy,ow,oh,0,0				,tI.getIconWidth()				,tI.getIconHeight()				, i);		}			    }    }}

⌨️ 快捷键说明

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