diff options
Diffstat (limited to 'NET/worlds/scape/Action.java')
| -rw-r--r-- | NET/worlds/scape/Action.java | 163 |
1 files changed, 163 insertions, 0 deletions
diff --git a/NET/worlds/scape/Action.java b/NET/worlds/scape/Action.java new file mode 100644 index 0000000..cd75bac --- /dev/null +++ b/NET/worlds/scape/Action.java @@ -0,0 +1,163 @@ +/* */ package NET.worlds.scape; +/* */ +/* */ import java.io.IOException; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public abstract class Action +/* */ extends SuperRoot +/* */ { +/* */ public String rightMenuLabel; +/* 82 */ private static Object classCookie = new Object(); +/* */ +/* */ +/* */ public abstract Persister trigger(Event paramEvent, Persister paramPersister); +/* */ +/* */ public void saveState(Saver s) +/* */ throws IOException +/* */ { +/* 90 */ s.saveVersion(4, classCookie); +/* 91 */ s.saveString(this.rightMenuLabel); +/* 92 */ super.saveState(s); +/* */ } +/* */ +/* */ +/* */ +/* */ +/* */ public void restoreState(Restorer r) +/* */ throws IOException, TooNewException +/* */ { +/* 101 */ switch (r.restoreVersion(classCookie)) { +/* */ case 1: +/* 103 */ r.restoreInt(); +/* 104 */ setName(r.restoreString()); +/* */ case 0: +/* 106 */ r.setOldFlag(); +/* 107 */ break; +/* */ case 2: +/* 109 */ r.setOldFlag(); +/* 110 */ super.restoreState(r); +/* 111 */ r.restoreInt(); +/* 112 */ break; +/* */ +/* */ case 4: +/* 115 */ this.rightMenuLabel = r.restoreString(); +/* */ case 3: +/* 117 */ super.restoreState(r); +/* 118 */ break; +/* */ default: +/* 120 */ throw new TooNewException(); +/* */ } +/* */ +/* */ } +/* */ +/* */ public Object properties(int index, int offset, int mode, Object value) +/* */ throws NoSuchPropertyException +/* */ { +/* 128 */ Object ret = null; +/* 129 */ switch (index - offset) { +/* */ case 0: +/* 131 */ if (mode == 0) { +/* 132 */ ret = BooleanPropertyEditor.make(new Property(this, index, +/* 133 */ "Trigger Now"), "No", "Yes"); +/* 134 */ } else if (mode == 1) { +/* 135 */ ret = new Boolean(false); +/* 136 */ } else if ((mode == 2) && +/* 137 */ (((Boolean)value).booleanValue())) { +/* 138 */ RunningActionHandler.trigger(this, getWorld(), null); +/* */ } +/* 140 */ break; +/* */ +/* */ case 1: +/* 143 */ if (mode == 0) { +/* 144 */ ret = StringPropertyEditor.make(new Property(this, index, +/* 145 */ "Right Menu Label").allowSetNull()); +/* 146 */ } else if (mode == 1) { +/* 147 */ ret = this.rightMenuLabel; +/* 148 */ } else if (mode == 2) +/* 149 */ this.rightMenuLabel = ((String)value); +/* 150 */ break; +/* */ +/* */ default: +/* 153 */ ret = super.properties(index, offset + 2, mode, value); +/* */ } +/* 155 */ return ret; +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\Action.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */
\ No newline at end of file |