summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/CrashAction.java
diff options
context:
space:
mode:
Diffstat (limited to 'NET/worlds/scape/CrashAction.java')
-rw-r--r--NET/worlds/scape/CrashAction.java78
1 files changed, 78 insertions, 0 deletions
diff --git a/NET/worlds/scape/CrashAction.java b/NET/worlds/scape/CrashAction.java
new file mode 100644
index 0000000..b3c5d6c
--- /dev/null
+++ b/NET/worlds/scape/CrashAction.java
@@ -0,0 +1,78 @@
+/* */ 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
+ */ \ No newline at end of file