From b96ee9ff345d9b0133901a2be076e3bf5e202a7f Mon Sep 17 00:00:00 2001 From: fdai7551 Date: Wed, 1 Feb 2023 09:55:46 +0100 Subject: [PATCH] [SnakeGame Class]: Getter und setter Methoden zu allen Variablen erstellt --- .../JavaGamelauncher/SnakeGame.java | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/SnakeGame.java b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/SnakeGame.java index 531256a..d673a1c 100644 --- a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/SnakeGame.java +++ b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/SnakeGame.java @@ -98,5 +98,78 @@ public class SnakeGame extends JFrame { cP.add(panel4); } + + public JPanel getPanel1() { + return panel1; + } + + public void setPanel1(JPanel panel1) { + this.panel1 = panel1; + } + + public JPanel getPanel2() { + return panel2; + } + + public void setPanel2(JPanel panel2) { + this.panel2 = panel2; + } + + public JPanel getPanel3() { + return panel3; + } + + public void setPanel3(JPanel panel3) { + this.panel3 = panel3; + } + + public JPanel getPanel4() { + return panel4; + } + + public void setPanel4(JPanel panel4) { + this.panel4 = panel4; + } + + public int getBreite() { + return breite; + } + + public void setBreite(int breite) { + this.breite = breite; + } + + public int getHoehe() { + return hoehe; + } + + public void setHoehe(int hoehe) { + this.hoehe = hoehe; + } + + public String getTitel() { + return titel; + } + + public void setTitel(String titel) { + this.titel = titel; + } + + public int getHoeheP() { + return hoeheP; + } + + public void setHoeheP(int hoeheP) { + this.hoeheP = hoeheP; + } + + public int getBreiteP() { + return breiteP; + } + + public void setBreiteP(int breiteP) { + this.breiteP = breiteP; + } + }