package dotsboxes.utils;

import dotsboxes.players.PlayerDesc;

public class PlayersList extends TaggedCircleBuffer<PlayerDesc, String> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3755895266829903162L;

	public PlayersList(Iterable<PlayerDesc> buffer, int indx_begin, String tag) {
		super(buffer, indx_begin, tag);
	}

	public PlayersList(Iterable<PlayerDesc> buffer, String tag) {
		super(buffer, tag);
	}

	public PlayersList() {
		super();
	}

	public PlayersList clone() throws CloneNotSupportedException
	{
		return (PlayersList) super.clone();
	}
}

@@ -19,16 +19,42 @@
 utils;%0A%0A
+import java.util.Vector;%0A%0A
 import d
@@ -481,24 +481,403 @@
 %09super();%0A%09%7D
+%0A%09%0A%09public PlayersList getPlayersByTag(String tag)%0A%09%7B%0A%09%09Vector%3CTaggedValue%3CPlayerDesc, String%3E%3E buffer = getBuffer();%0A%09%09Vector%3CPlayerDesc%3E players_by_tag = new Vector%3CPlayerDesc%3E();%0A%09%09for (TaggedValue%3CPlayerDesc, String%3E player : buffer ) %7B%0A%09%09%09if ( player.tag.equals(tag) ) %7B%0A%09%09%09%09players_by_tag.add( player.value );%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09return new PlayersList( players_by_tag, tag );%0A%09%7D
 %0A%0A%09public Pl

add PlayersList slice by tag