core/src/de/lksbhm/gdx/util/CircularBuffer.java
/**
	 * Removes the topmost object of the ringbuffer and returns it.
	 * 
	 * @return the object which used to be on top of the ringbuffer.
	 * @throws Exception
	 */
Removes the topmost object of the ringbuffer and returns it.

@return the object which used to be on top of the ringbuffer.
@throws Exception
Removes the topmost object of the ringbuffer and returns it . @return the object which used to be on top of the ringbuffer . @throws Exception
public T pop() throws RuntimeException {
		if (items == 0) {
			throw new RuntimeException("No elements left to pop");
		}
		head = (head + buffer.length - 1) % buffer.length;
		items--;
		return buffer[head];
	}
public T pop ( ) throws RuntimeException { if ( items == 0 ) { throw new RuntimeException ( "No elements left to pop" ) ; } head = ( head + buffer . length - 1 ) % buffer . length ; items -- ; return buffer [ head ] ; }
Removes the topmost object of the ringbuffer and returns it.
Removes the topmost object of the ringbuffer and returns it .