Code example for ConcurrentLinkedQueue

0
	// Battle control 
	protected boolean isPaused;
	private int stepCount;
	private boolean runBackward;
	private boolean roundOver;
	private final Queue<Command> pendingCommands = new ConcurrentLinkedQueue<Command>();
 
	protected BaseBattle(ISettingsManager properties, IBattleManager battleManager, BattleEventDispatcher eventDispatcher) {
		stepCount = 0;
 
		this.properties = properties;
		this.eventDispatcher = eventDispatcher;
 
		this.battleManager = battleManager;
	} 
 
	public void setBattleThread(Thread newBattleThread) {
		battleThread = newBattleThread;
	} 
 
	/**