Item classes added

This commit is contained in:
elacey
2019-05-23 13:21:27 -04:00
parent f1c5c19652
commit 904e5bdefa
9 changed files with 73 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
package com.bayviewglen.zork.Items;
public class Blanket extends Item{
public Blanket(){
super(27, "Blanket", "A cotton blanket which is nicely folded", false, 50, 30);
}
}

View File

@@ -0,0 +1,8 @@
package com.bayviewglen.zork.Items;
public class Cheese extends Item{
public Cheese(){
super(20, "Cheese", "A block of swiss cheese which has started to mold after being left out", true, 20, 1);
}
}

View File

@@ -0,0 +1,9 @@
package com.bayviewglen.zork.Items;
public class Chips extends Item{
public Chips(){
super(22, "Chips", "A sealed bag of jalapeno falovured chips on the counter beside the milk", true, 20, 1);
}
}

View File

@@ -0,0 +1,8 @@
package com.bayviewglen.zork.Items;
public class Chocolate extends Item{
public Chocolate(){
super(24, "Chocolate", "A piece of dark chocolate on a napkin by the milk and the chips", true, 10, 1);
}
}

View File

@@ -0,0 +1,8 @@
package com.bayviewglen.zork.Items;
public class Clothes extends Item{
public Clothes(){
super(26, "Clothes", "Clothes belonging to Mr. and Mrs. Pellatt lay scattered on the floor", false, 50, 20);
}
}

View File

@@ -0,0 +1,8 @@
package com.bayviewglen.zork.Items;
public class GranolaBars extends Item{
public GranolaBars(){
super(23, "Granola Bars", "A pack of 6 granola bars ripped open with little to no care", true, 20, 6);
}
}

View File

@@ -0,0 +1,8 @@
package com.bayviewglen.zork.Items;
public class Milk extends Item{
public Milk(){
super(19, "Milk", "A opened carton of skimmed milk two days away from expiring", true, 20, 1);
}
}

View File

@@ -0,0 +1,8 @@
package com.bayviewglen.zork.Items;
public class WarmBread extends Item{
public WarmBread(){
super(25, "Warm Bread", "A fresh loaf of bread sits just outside of the oven still warm to the touch", true, 30, 10);
}
}

View File

@@ -0,0 +1,8 @@
package com.bayviewglen.zork.Items;
public class Yogurt extends Item{
public Yogurt(){
super(21, "Yogurt", "A tub of vanilla greek yogurt with a spoon still inside", true, 20, 1);
}
}