/* */ package NET.worlds.scape; /* */ /* */ import java.io.IOException; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public class PickUpAction /* */ extends Action /* */ { /* */ public Persister trigger(Event arg, Persister seqID) /* */ { /* 30 */ WObject w = (WObject)getOwner(); /* */ /* 32 */ w.detach(); /* */ /* */ /* 35 */ w.raise(-Pilot.getActive().getZ()); /* */ /* 37 */ Pilot.getActive().add(w); /* */ /* */ /* 40 */ return null; /* */ } /* */ /* */ /* */ /* */ /* */ /* 47 */ private static Object classCookie = new Object(); /* */ /* */ public void saveState(Saver s) throws IOException /* */ { /* 51 */ s.saveVersion(0, classCookie); /* 52 */ super.saveState(s); /* */ } /* */ /* */ public void restoreState(Restorer r) /* */ throws IOException, TooNewException /* */ { /* 58 */ switch (r.restoreVersion(classCookie)) { /* */ case 0: /* 60 */ super.restoreState(r); /* 61 */ break; /* */ default: /* 63 */ throw new TooNewException(); /* */ } /* */ } /* */ } /* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\PickUpAction.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */