diff options
| author | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
| commit | e1e781bb2135ef78592226f1a3eaba4925702f1f (patch) | |
| tree | 8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/console/UserInventoryCallback.java | |
| download | worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.tar.xz worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.zip | |
Diffstat (limited to 'NET/worlds/console/UserInventoryCallback.java')
| -rw-r--r-- | NET/worlds/console/UserInventoryCallback.java | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/NET/worlds/console/UserInventoryCallback.java b/NET/worlds/console/UserInventoryCallback.java new file mode 100644 index 0000000..6528ee7 --- /dev/null +++ b/NET/worlds/console/UserInventoryCallback.java @@ -0,0 +1,49 @@ +/* */ package NET.worlds.console; +/* */ +/* */ import NET.worlds.scape.InventoryCallback; +/* */ import NET.worlds.scape.Pilot; +/* */ import NET.worlds.scape.Point3Temp; +/* */ import NET.worlds.scape.Room; +/* */ import NET.worlds.scape.WObject; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public class UserInventoryCallback +/* */ implements InventoryCallback +/* */ { +/* */ public void droppedInventoryItem(Object item) +/* */ { +/* 25 */ WObject w = (WObject)item; +/* 26 */ w.detach(); +/* 27 */ w.setVisible(true); +/* */ +/* */ +/* */ +/* 31 */ Pilot pilot = Pilot.getActive(); +/* 32 */ Room r = pilot.getRoom(); +/* */ +/* 34 */ Point3Temp pos = Point3Temp.make(0.0F, 180.0F, 0.0F); +/* 35 */ pos.times(pilot); +/* */ +/* */ +/* 38 */ pos.z = (w.getPosition().z + pilot.getPosition().z); +/* 39 */ w.moveTo(pos); +/* */ +/* 41 */ r.add(w); +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\console\UserInventoryCallback.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */
\ No newline at end of file |