Item Classes for 6 objects

This commit is contained in:
elacey
2019-05-10 14:00:31 -04:00
parent 62e041a20b
commit 73279ff515
6 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
package com.bayviewglen.zork.Items;
public class Base extends Item{
public Base(){
super(5, "Base", "A base for an ancient battering ram", false, 100, 1);
}
}

View File

@@ -0,0 +1,8 @@
package com.bayviewglen.zork.Items;
public class Crowbar extends Item{
public Crowbar() {
super(4, "Crowbar", "A pointed metal object used to open a jammed wooden door", false, 100, 1);
}
}

View File

@@ -0,0 +1,8 @@
package com.bayviewglen.zork.Items;
public class Cylinder extends Item{
public Cylinder(){
super(6, "Cylinder", "A part of a battering ram meant to lay on the base and have a point attatched to the end", false, 100, 1);
}
}

View File

@@ -0,0 +1,8 @@
package com.bayviewglen.zork.Items;
public class Key extends Item{
public Key(){
super(3, "Key", "A rusted key used to open a locked door", false, 100, 1);
}
}

View File

@@ -0,0 +1,8 @@
package com.bayviewglen.zork.Items;
public class Lockpick extends Item{
public Lockpick(){
super(2, "Lockpick", "A fragile tool used to open a locked door", false, 1, 1);
}
}

View File

@@ -0,0 +1,8 @@
package com.bayviewglen.zork.Items;
public class Point extends Item{
public Point() {
super(6, "Point", "A part of the battering ram that is attatched to the cylinder and smashes the door", false, 100, 1);
}
}