From f6874531c0090de93db8960c59865528a51046ca Mon Sep 17 00:00:00 2001 From: Yazan Alaamer Date: Wed, 25 Jan 2023 11:08:52 +0100 Subject: [PATCH] refactoring: deleting unnecessary data types --- src/main/java/game/StartDarkSoulsGame.java | 23 ++++++---------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/src/main/java/game/StartDarkSoulsGame.java b/src/main/java/game/StartDarkSoulsGame.java index c9ae0dc..96d6bf1 100644 --- a/src/main/java/game/StartDarkSoulsGame.java +++ b/src/main/java/game/StartDarkSoulsGame.java @@ -13,29 +13,18 @@ import javax.swing.JFrame; import javax.swing.JLabel; public class StartDarkSoulsGame { - JPanel titleNamePanel; - JLabel titelNameLabel; - JPanel StartButtonPanel; - JPanel mainTextPanel; - JPanel choiceButtonPanel; - JPanel playerPanel; + JLabel titelNameLabel, hpLabel, hpLabelNumber, weaponLabelName, weaponLabel; + JPanel titleNamePanel, StartButtonPanel,playerPanel, mainTextPanel,choiceButtonPanel; JTextArea mainTextArea; - JLabel hpLabel; - JLabel hpLabelNumber; - JLabel weaponLabel; - JLabel weaponLabelName; Font titelFont = new Font("Times new Roman", Font.PLAIN, 90); Font normalFont = new Font ("Times new Roman", Font.PLAIN, 27); - JButton startButton; - JButton StartButton, choice1, choice2, choice3, choice4; + JButton startButton, StartButton, choice1, choice2, choice3, choice4; Container con; TitelScreenHandler tsHandler= new TitelScreenHandler(); ChoiceHandler choiceHandler = new ChoiceHandler(); - int playerHP ; - String position; - String weapon; - int monsterHP; - int AshuraRing; + int playerHP, monsterHP, AshuraRing; + String position, weapon; + public StartDarkSoulsGame() { gui.status = 1; gui.Frame.setSize(800, 600);