jitem.java

来自「对对碰小游戏」· Java 代码 · 共 32 行

JAVA
32
字号
import javax.swing.*;
public class JItem{
	public static final int NoSound=100;
	public static final int NoProgress = 1000;
	public JLabel label;
	public int pic;
	public int sleep_num_before;
	public int sleep_num_after;
	public boolean specialDelay;
	public int sound;
	public int progress_num = NoProgress;
	public JItem(int progress_flag,int p_num){
		progress_num = p_num;
		}
	public JItem(boolean b,int sbefore){
		sleep_num_before = sbefore;
		specialDelay = b;
		sound =NoSound;
		}
	public JItem(int s){
		sound =s;
		}
	public JItem(JLabel l,int i, int sbefore, int safter){
		label = l;
		pic = i;
		sleep_num_before = sbefore;
		sleep_num_after=safter;
		specialDelay = false;
		sound=NoSound;
		}
}

⌨️ 快捷键说明

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