New items and classes added

This commit is contained in:
elacey
2019-05-29 13:24:48 -04:00
parent 0b4d4f3aa4
commit 81c8b92f1e
4 changed files with 31 additions and 1 deletions

View File

@@ -58,4 +58,7 @@ i, verb
unlock, verb
drop, verb
henrypellatt, enemy
attack, verb
attack, verb
clock, item
keyboard, item
lightbulb, item

View File

@@ -0,0 +1,9 @@
package com.bayviewglen.zork.Items;
public class Clock extends Item{
public Clock() {
super(34, "Clock", "An antique clock that is no longer working is propped up against the wall", false, 20, 10);
}
}

View File

@@ -0,0 +1,9 @@
package com.bayviewglen.zork.Items;
public class Keyboard extends Item{
public Keyboard() {
super(36, "Keyboard", "An unplugged keyboard for a desktop computer is neatly placed by a wall", false, 20, 10);
}
}

View File

@@ -0,0 +1,9 @@
package com.bayviewglen.zork.Items;
public class Lightbulb extends Item{
public Lightbulb() {
super(35, "Lightbulb", "An incandescent light bulb rolls around on the floor", false, 20, 5);
}
}