/* */ package NET.worlds.scape; /* */ /* */ import java.io.IOException; /* */ /* */ /* */ /* */ /* */ /* */ /* */ public class CrashAction /* */ extends Action /* */ { /* 13 */ private String message = "CrashAction"; /* */ /* */ /* */ /* */ /* */ /* */ public void setMessage(String m) /* */ { /* 21 */ this.message = m; /* */ } /* */ /* */ public Persister trigger(Event e, Persister seqId) /* */ { /* 26 */ throw new Error(this.message); /* */ } /* */ /* */ /* */ /* */ /* */ public Object properties(int index, int offset, int mode, Object value) /* */ throws NoSuchPropertyException /* */ { /* 35 */ Object ret = null; /* 36 */ switch (index - offset) { /* */ case 0: /* 38 */ if (mode == 0) { /* 39 */ ret = StringPropertyEditor.make( /* 40 */ new Property(this, index, "Message")); /* 41 */ } else if (mode == 1) { /* 42 */ ret = new String(this.message); /* 43 */ } else if (mode == 2) /* 44 */ this.message = ((String)value); /* 45 */ break; /* */ default: /* 47 */ ret = super.properties(index, offset + 1, mode, value); /* */ } /* 49 */ return ret; /* */ } /* */ /* 52 */ private static Object classCookie = new Object(); /* */ /* */ public void saveState(Saver s) throws IOException /* */ { /* 56 */ s.saveVersion(1, classCookie); /* 57 */ super.saveState(s); /* 58 */ s.saveString(this.message); /* */ } /* */ /* */ public void restoreState(Restorer r) throws IOException, TooNewException /* */ { /* 63 */ switch (r.restoreVersion(classCookie)) { /* */ case 1: /* 65 */ super.restoreState(r); /* 66 */ this.message = r.restoreString(); /* 67 */ break; /* */ default: /* 69 */ throw new TooNewException(); /* */ } /* */ } /* */ } /* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\CrashAction.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */