diff options
Diffstat (limited to 'NET/worlds/scape/PickUpAction.java')
| -rw-r--r-- | NET/worlds/scape/PickUpAction.java | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/NET/worlds/scape/PickUpAction.java b/NET/worlds/scape/PickUpAction.java new file mode 100644 index 0000000..af2c966 --- /dev/null +++ b/NET/worlds/scape/PickUpAction.java @@ -0,0 +1,72 @@ +/* */ 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 + */
\ No newline at end of file |