New items and classes added

This commit is contained in:
elacey
2019-05-14 22:29:07 -04:00
parent 04c8716308
commit 13837003c2
5 changed files with 29 additions and 2 deletions

View File

@@ -26,3 +26,6 @@ cylinder, item
point, item
garlic, item
robes, item
water bottle, item
pen, item
book, item

View File

@@ -0,0 +1,8 @@
package com.bayviewglen.zork.Items;
public class Book extends Item{
public Book(){
super(12, "Book", "A dust covered book with water stains around the edges", false, 50, 1);
}
}

View File

@@ -2,7 +2,7 @@ package com.bayviewglen.zork.Items;
public class Candlestick extends Item{
public Candlestick(){
super(1, "Candlestick", "A slender stick of wax with a small wick of cotton sticking out of the top", true, 100, 1);
super(1, "Candlestick", "A slender stick of wax with a small wick of cotton sticking out of the top", false, 100, 1);
}

View File

@@ -0,0 +1,8 @@
package com.bayviewglen.zork.Items;
public class Pen extends Item{
public Pen(){
super(11, "Pen", "An old-fashioned feathered pen with ink dried on the tip", false, 10, 1);
}
}

View File

@@ -0,0 +1,8 @@
package com.bayviewglen.zork.Items;
public class WaterBottle extends Item{
public WaterBottle() {
super(10, "Water Bottle", "A plastic water bottle half filled with filthy water", true, 10, 1);
}
}