From 6890c80034c9310358a0421db63d832a79fffab5 Mon Sep 17 00:00:00 2001 From: Jonas Wagner Date: Tue, 25 Jan 2022 08:40:14 +0100 Subject: [PATCH] Add get and set methods to Figure.java --- src/main/java/Figure.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/Figure.java b/src/main/java/Figure.java index 8cf72b9..9b7ffa9 100644 --- a/src/main/java/Figure.java +++ b/src/main/java/Figure.java @@ -6,4 +6,11 @@ public class Figure { this.position = -1; } + public void setPosition(int position) { + this.position = position; + } + + public int getPosition() { + return position; + } }