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

📄 queue2.java

📁 游戏基础
💻 JAVA
字号:
package net.java.gamebase.sample.boxes.v4;

import java.util.Vector;

public class Queue2 extends Vector {

	/**
	 * add at the last position, to add to the first position,
	 * we should use add( box, 0 ), that would shift all the itens
	 * down, behaving as an Stack instead of and Queue as it is
	 * 
	 * note that the method name is not add() to avoid infinite calls
	 * to the same method ... (I mada that... lol)
	 * 
	 * @param box
	 */
	public void addBox( FallingBox2 box ){
		add(box);
	}
	
	
	public FallingBox2 getBox(int pos){
		return (FallingBox2)get(pos);
	}

}

⌨️ 快捷键说明

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