Add clear() functionality

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@482 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Nathan Curtis
2008-05-06 17:03:45 +00:00
parent ba06889b90
commit 7c7b4fdd10
+6
View File
@@ -67,6 +67,12 @@ public class PlayerList extends VBox
_players.sort = sort;
}
public function clear () :void
{
_values = new Dictionary();
_players.removeAll();
}
/**
* The PlayerList is meant to include data that is at least as complicated as a Name, so to
* keep things simple and extendable, we require Comparable. This allows the issue of passing