summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/EquippableItem.java
diff options
context:
space:
mode:
Diffstat (limited to 'NET/worlds/scape/EquippableItem.java')
-rw-r--r--NET/worlds/scape/EquippableItem.java182
1 files changed, 182 insertions, 0 deletions
diff --git a/NET/worlds/scape/EquippableItem.java b/NET/worlds/scape/EquippableItem.java
new file mode 100644
index 0000000..1e6d082
--- /dev/null
+++ b/NET/worlds/scape/EquippableItem.java
@@ -0,0 +1,182 @@
+/* */ package NET.worlds.scape;
+/* */
+/* */
+/* */
+/* */ public class EquippableItem
+/* */ extends InventoryItem
+/* */ {
+/* */ private String modelLocation_;
+/* */
+/* */ private float xPos_;
+/* */
+/* */ private float yPos_;
+/* */
+/* */ private float zPos_;
+/* */
+/* */ private float scale_;
+/* */
+/* */ private int pitch_;
+/* */
+/* */ private int roll_;
+/* */
+/* */ private int yaw_;
+/* */
+/* */ private Shape shape_;
+/* */
+/* */ private int bodyLocation_;
+/* */
+/* */
+/* */ public EquippableItem(String id, String name, int qty, String modelLoc, float scale, int bodyLoc)
+/* */ {
+/* 31 */ super(id, name, qty);
+/* 32 */ this.modelLocation_ = modelLoc;
+/* 33 */ this.scale_ = scale;
+/* 34 */ this.bodyLocation_ = bodyLoc;
+/* 35 */ this.shape_ = null;
+/* */ }
+/* */
+/* */
+/* */
+/* */ public EquippableItem(String id, String name, int qty, String modelLoc, float scale, int bodyLoc, float xPos, float yPos, float zPos)
+/* */ {
+/* 42 */ super(id, name, qty);
+/* 43 */ this.modelLocation_ = modelLoc;
+/* 44 */ this.scale_ = scale;
+/* 45 */ this.bodyLocation_ = bodyLoc;
+/* 46 */ this.xPos_ = xPos;
+/* 47 */ this.yPos_ = yPos;
+/* 48 */ this.zPos_ = zPos;
+/* 49 */ this.shape_ = null;
+/* */ }
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ public EquippableItem(String id, String name, int qty, String modelLoc, float scale, int bodyLoc, float xPos, float yPos, float zPos, int pitch, int roll, int yaw)
+/* */ {
+/* 58 */ super(id, name, qty);
+/* 59 */ this.modelLocation_ = modelLoc;
+/* 60 */ this.scale_ = scale;
+/* 61 */ this.bodyLocation_ = bodyLoc;
+/* 62 */ this.xPos_ = xPos;
+/* 63 */ this.yPos_ = yPos;
+/* 64 */ this.zPos_ = zPos;
+/* 65 */ this.pitch_ = pitch;
+/* 66 */ this.roll_ = roll;
+/* 67 */ this.yaw_ = yaw;
+/* 68 */ this.shape_ = null;
+/* */ }
+/* */
+/* */
+/* */ public EquippableItem(EquippableItem in)
+/* */ {
+/* 74 */ super(in);
+/* 75 */ this.modelLocation_ = in.modelLocation_;
+/* 76 */ this.scale_ = in.scale_;
+/* 77 */ this.bodyLocation_ = in.bodyLocation_;
+/* 78 */ this.xPos_ = in.xPos_;
+/* 79 */ this.yPos_ = in.yPos_;
+/* 80 */ this.zPos_ = in.zPos_;
+/* 81 */ this.pitch_ = in.pitch_;
+/* 82 */ this.roll_ = in.roll_;
+/* 83 */ this.yaw_ = in.yaw_;
+/* 84 */ this.shape_ = null;
+/* */ }
+/* */
+/* */ public InventoryItem cloneItem()
+/* */ {
+/* 89 */ return new EquippableItem(this);
+/* */ }
+/* */
+/* */
+/* */
+/* */ public String getModelLocation()
+/* */ {
+/* 96 */ return this.modelLocation_;
+/* */ }
+/* */
+/* */ public void setModelLocation(String loc)
+/* */ {
+/* 101 */ this.modelLocation_ = loc;
+/* */ }
+/* */
+/* */ public int getBodyLocation()
+/* */ {
+/* 106 */ return this.bodyLocation_;
+/* */ }
+/* */
+/* */ public void setBodyLocation(int loc)
+/* */ {
+/* 111 */ this.bodyLocation_ = loc;
+/* */ }
+/* */
+/* */ public float getScale()
+/* */ {
+/* 116 */ return this.scale_;
+/* */ }
+/* */
+/* */ public void setScale(float scale)
+/* */ {
+/* 121 */ this.scale_ = scale;
+/* */ }
+/* */
+/* */ public float getXPos() {
+/* 125 */ return this.xPos_;
+/* */ }
+/* */
+/* */ public float getYPos()
+/* */ {
+/* 130 */ return this.yPos_;
+/* */ }
+/* */
+/* */ public float getZPos()
+/* */ {
+/* 135 */ return this.zPos_;
+/* */ }
+/* */
+/* */ public void setPosition(float xPos, float yPos, float zPos)
+/* */ {
+/* 140 */ this.xPos_ = xPos;
+/* 141 */ this.yPos_ = yPos;
+/* 142 */ this.zPos_ = zPos;
+/* */ }
+/* */
+/* */ public int getPitch()
+/* */ {
+/* 147 */ return this.pitch_;
+/* */ }
+/* */
+/* */ public int getRoll()
+/* */ {
+/* 152 */ return this.roll_;
+/* */ }
+/* */
+/* */ public int getYaw()
+/* */ {
+/* 157 */ return this.yaw_;
+/* */ }
+/* */
+/* */ public void setRotation(int pitch, int roll, int yaw)
+/* */ {
+/* 162 */ this.pitch_ = pitch;
+/* 163 */ this.roll_ = roll;
+/* 164 */ this.yaw_ = yaw;
+/* */ }
+/* */
+/* */ public void setOwnedShape(Shape s)
+/* */ {
+/* 169 */ this.shape_ = s;
+/* */ }
+/* */
+/* */ public Shape getOwnedShape()
+/* */ {
+/* 174 */ return this.shape_;
+/* */ }
+/* */ }
+
+
+/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\EquippableItem.class
+ * Java compiler version: 6 (50.0)
+ * JD-Core Version: 0.7.1
+ */ \ No newline at end of file