diff options
| author | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
| commit | e1e781bb2135ef78592226f1a3eaba4925702f1f (patch) | |
| tree | 8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/console/StatMan.java | |
| download | worlds.jar-main.tar.xz worlds.jar-main.zip | |
Diffstat (limited to 'NET/worlds/console/StatMan.java')
| -rw-r--r-- | NET/worlds/console/StatMan.java | 71 |
1 files changed, 71 insertions, 0 deletions
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<Object> _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<Object> 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 |