From e1e781bb2135ef78592226f1a3eaba4925702f1f Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 3 May 2021 16:38:41 -0700 Subject: :star: --- NET/worlds/console/StatMan.java | 71 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 NET/worlds/console/StatMan.java (limited to 'NET/worlds/console/StatMan.java') diff --git a/NET/worlds/console/StatMan.java b/NET/worlds/console/StatMan.java new file mode 100644 index 0000000..aaa4aab --- /dev/null +++ b/NET/worlds/console/StatMan.java @@ -0,0 +1,71 @@ +/* */ package NET.worlds.console; +/* */ +/* */ import java.awt.List; +/* */ import java.util.Vector; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ abstract class StatMan +/* */ { +/* */ protected Vector _children; +/* */ protected List _grabbedList; +/* */ protected Tree _tree; +/* */ +/* */ void createList() +/* */ { +/* 22 */ updateList(); +/* */ } +/* */ +/* */ abstract void updateList(); +/* */ +/* */ void releaseList(boolean terminalCallback) { +/* 28 */ this._grabbedList = null; +/* */ } +/* */ +/* */ void grabList(List list) +/* */ { +/* 33 */ assert (this._grabbedList == null); +/* */ +/* 35 */ this._grabbedList = list; +/* 36 */ this._grabbedList.removeAll(); +/* 37 */ createList(); +/* */ } +/* */ +/* */ void setTree(Tree tree) { +/* 41 */ this._tree = tree; +/* 42 */ if (this._children != null) { +/* 43 */ for (int i = this._children.size() - 1; i >= 0; i--) { +/* 44 */ StatMan child = (StatMan)this._children.elementAt(i); +/* 45 */ child.setTree(this._tree); +/* */ } +/* */ } +/* */ } +/* */ +/* */ Vector getChildren() { +/* 51 */ return this._children; +/* */ } +/* */ +/* */ void addChild(StatMan child) { +/* 55 */ assert (child != null); +/* 56 */ if (this._children == null) +/* 57 */ this._children = new Vector(); +/* 58 */ assert (this._children.indexOf(child) == -1); +/* 59 */ this._children.addElement(child); +/* 60 */ if (this._tree != null) { +/* 61 */ child.setTree(this._tree); +/* 62 */ this._tree.update(); +/* */ } +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\console\StatMan.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */ \ No newline at end of file -- cgit v1.2.3