From c1c64104d0ef5921fea0bd34d7be5e3b8d96d01a Mon Sep 17 00:00:00 2001
From: HSoreide <sofie.scisly@gmail.com>
Date: Mon, 13 Mar 2023 12:50:29 +0100
Subject: [PATCH] Write first draft of RecipeIngredient class that extends
 Ingredient class

---
 .../demo/data/recipes/RecipeIngredient.java   | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 src/main/java/no/ntnu/idatt1002/demo/data/recipes/RecipeIngredient.java

diff --git a/src/main/java/no/ntnu/idatt1002/demo/data/recipes/RecipeIngredient.java b/src/main/java/no/ntnu/idatt1002/demo/data/recipes/RecipeIngredient.java
new file mode 100644
index 00000000..820b3837
--- /dev/null
+++ b/src/main/java/no/ntnu/idatt1002/demo/data/recipes/RecipeIngredient.java
@@ -0,0 +1,19 @@
+package no.ntnu.idatt1002.demo.data.recipes;
+
+public class RecipeIngredient extends Ingredient{
+
+    private boolean atHand = false;
+
+    public RecipeIngredient(FoodItem ingredient, double amount, MeasuringUnit unit) {
+        super(ingredient, amount, unit);
+    }
+
+    public boolean isAtHand() {
+        return atHand;
+    }
+
+    public void setAtHand(boolean atHand) {
+        this.atHand = atHand;
+    }
+
+}
-- 
GitLab