package attackontinytim.barquest.Database;

/**
 * Created by Tim Buesking on 2/21/2017.
 */

public class ConsumableItem {
    public ConsumableItem(String effect, int effectStrength, String name, double value) {
        this.effect = effect;
        this.effectStrength = effectStrength;
        this.name = name;
        this.value = value;
    }

    public String getEffect() {
        return effect;
    }

    public void setEffect(String effect) {
        this.effect = effect;
    }

    public int getEffectStrength() {
        return effectStrength;
    }

    public void setEffectStrength(int effectStrength) {
        this.effectStrength = effectStrength;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getValue() {
        return value;
    }

    public void setValue(double value) {
        this.value = value;
    }

    private String effect;
    private int effectStrength;
    private String name;
    private double value;


}

@@ -39,13 +39,51 @@
 ase;
-%0A
+%0D%0A%0D%0Aimport android.database.Cursor;%0D%0A%0D
 %0A/**
+%0D
 %0A * 
@@ -123,13 +123,16 @@
 017.
+%0D
 %0A */
-%0A
+%0D%0A%0D
 %0Apub
@@ -157,16 +157,17 @@
 leItem %7B
+%0D
 %0A    pub
@@ -240,32 +240,33 @@
  double value) %7B
+%0D
 %0A        this.ef
@@ -275,24 +275,25 @@
 ct = effect;
+%0D
 %0A        thi
@@ -322,24 +322,25 @@
 ectStrength;
+%0D
 %0A        thi
@@ -349,24 +349,25 @@
 name = name;
+%0D
 %0A        thi
@@ -378,31 +378,262 @@
 lue = value;
+%0D
 %0A    %7D
-%0A
+%0D%0A%0D%0A    public ConsumableItem(Cursor cursor)%0D%0A    %7B%0D%0A        this.effect = cursor.getString(0);%0D%0A        this.effectStrength= cursor.getInt(1);%0D%0A        this.name=cursor.getString(2);%0D%0A        this.value=cursor.getInt(3);%0D%0A    %7D%0D%0A%0D
 %0A    public 
@@ -648,24 +648,25 @@
 etEffect() %7B
+%0D
 %0A        ret
@@ -668,39 +668,42 @@
   return effect;
+%0D
 %0A    %7D
-%0A
+%0D%0A%0D
 %0A    public void
@@ -729,16 +729,17 @@
 ffect) %7B
+%0D
 %0A       
@@ -760,23 +760,26 @@
  effect;
+%0D
 %0A    %7D
-%0A
+%0D%0A%0D
 %0A    pub
@@ -803,24 +803,25 @@
 Strength() %7B
+%0D
 %0A        ret
@@ -831,39 +831,42 @@
  effectStrength;
+%0D
 %0A    %7D
-%0A
+%0D%0A%0D
 %0A    public void
@@ -905,16 +905,17 @@
 ength) %7B
+%0D
 %0A       
@@ -952,23 +952,26 @@
 trength;
+%0D
 %0A    %7D
-%0A
+%0D%0A%0D
 %0A    pub
@@ -988,24 +988,25 @@
  getName() %7B
+%0D
 %0A        ret
@@ -1010,31 +1010,34 @@
 return name;
+%0D
 %0A    %7D
-%0A
+%0D%0A%0D
 %0A    public 
@@ -1059,24 +1059,25 @@
 ring name) %7B
+%0D
 %0A        thi
@@ -1090,23 +1090,26 @@
  = name;
+%0D
 %0A    %7D
-%0A
+%0D%0A%0D
 %0A    pub
@@ -1131,16 +1131,17 @@
 alue() %7B
+%0D
 %0A       
@@ -1150,31 +1150,34 @@
 eturn value;
+%0D
 %0A    %7D
-%0A
+%0D%0A%0D
 %0A    public 
@@ -1205,16 +1205,17 @@
 value) %7B
+%0D
 %0A       
@@ -1238,15 +1238,18 @@
 lue;
+%0D
 %0A    %7D
-%0A
+%0D%0A%0D
 %0A   
@@ -1271,16 +1271,17 @@
  effect;
+%0D
 %0A    pri
@@ -1304,16 +1304,17 @@
 trength;
+%0D
 %0A    pri
@@ -1330,16 +1330,17 @@
 ng name;
+%0D
 %0A    pri
@@ -1361,9 +1361,13 @@
 lue;
-%0A%0A
+%0D%0A%0D%0A%0D
 %0A%7D
+%0D
 %0A

Add files via upload