summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/UndoablSet.java
diff options
context:
space:
mode:
Diffstat (limited to 'NET/worlds/scape/UndoablSet.java')
-rw-r--r--NET/worlds/scape/UndoablSet.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/NET/worlds/scape/UndoablSet.java b/NET/worlds/scape/UndoablSet.java
new file mode 100644
index 0000000..843b405
--- /dev/null
+++ b/NET/worlds/scape/UndoablSet.java
@@ -0,0 +1,33 @@
+/* */ package NET.worlds.scape;
+/* */
+/* */
+/* */
+/* */
+/* */ class UndoablSet
+/* */ implements Undoable
+/* */ {
+/* */ private Property prop;
+/* */
+/* */
+/* */ private Object obj;
+/* */
+/* */
+/* */
+/* */ UndoablSet(Property prop, Object newObj)
+/* */ {
+/* 18 */ this.prop = prop;
+/* 19 */ this.obj = prop.get();
+/* 20 */ prop.set(newObj);
+/* */ }
+/* */
+/* */ public void undo()
+/* */ {
+/* 25 */ this.prop.set(this.obj);
+/* */ }
+/* */ }
+
+
+/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\UndoablSet.class
+ * Java compiler version: 6 (50.0)
+ * JD-Core Version: 0.7.1
+ */ \ No newline at end of file