diff options
Diffstat (limited to 'src/esieequest/model/items/SimpleItem.java')
-rw-r--r-- | src/esieequest/model/items/SimpleItem.java | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/esieequest/model/items/SimpleItem.java b/src/esieequest/model/items/SimpleItem.java index 7eb99e3..84bdb6c 100644 --- a/src/esieequest/model/items/SimpleItem.java +++ b/src/esieequest/model/items/SimpleItem.java | |||
@@ -26,7 +26,7 @@ public class SimpleItem implements SerialisableObject { | |||
26 | private final boolean droppable; | 26 | private final boolean droppable; |
27 | 27 | ||
28 | /** | 28 | /** |
29 | * Creates an item with the given characteristics. | 29 | * Creates a SimpleItem with the given characteristics. |
30 | * | 30 | * |
31 | * @param name | 31 | * @param name |
32 | * the name of the item | 32 | * the name of the item |
@@ -42,7 +42,7 @@ public class SimpleItem implements SerialisableObject { | |||
42 | } | 42 | } |
43 | 43 | ||
44 | /** | 44 | /** |
45 | * Creates an item with no weight. | 45 | * Creates a SimpleItem with no weight. |
46 | * | 46 | * |
47 | * @param name | 47 | * @param name |
48 | * the name of the item | 48 | * the name of the item |
@@ -54,6 +54,16 @@ public class SimpleItem implements SerialisableObject { | |||
54 | } | 54 | } |
55 | 55 | ||
56 | /** | 56 | /** |
57 | * Creates a non-droppable SimpleItem with no weight. | ||
58 | * | ||
59 | * @param name | ||
60 | * the name of the item | ||
61 | */ | ||
62 | public SimpleItem(final String name) { | ||
63 | this(name, false); | ||
64 | } | ||
65 | |||
66 | /** | ||
57 | * Performs actions when the player uses the Item. | 67 | * Performs actions when the player uses the Item. |
58 | * | 68 | * |
59 | * @param game | 69 | * @param game |