From 1c5d53afc1231696add7995742bfa2fd3f4ae2f7 Mon Sep 17 00:00:00 2001 From: Ramtin Jafari Date: Sat, 11 Jul 2026 15:25:34 +0330 Subject: [PATCH] add game accessories --- .../project/constants/gameConstant/Costumes.java | 14 ++++++++++++++ .../project/constants/gameConstant/Shields.java | 14 ++++++++++++++ .../project/constants/gameConstant/Weapons.java | 14 ++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 Java-Knight/src/main/java/org/project/constants/gameConstant/Costumes.java create mode 100644 Java-Knight/src/main/java/org/project/constants/gameConstant/Shields.java create mode 100644 Java-Knight/src/main/java/org/project/constants/gameConstant/Weapons.java diff --git a/Java-Knight/src/main/java/org/project/constants/gameConstant/Costumes.java b/Java-Knight/src/main/java/org/project/constants/gameConstant/Costumes.java new file mode 100644 index 0000000..8df2018 --- /dev/null +++ b/Java-Knight/src/main/java/org/project/constants/gameConstant/Costumes.java @@ -0,0 +1,14 @@ +package org.project.constants.gameConstant; + +import org.project.item.Accessory.Costume; + +public final class Costumes { + public static Costume cheapCostume = new Costume("cheap costume", null, 40, 100, 100, 10); + public static Costume SteelCostume = new Costume("steel costume", null, 150, 300, 300, 30); + public static Costume GoldenCostume = new Costume("golden costume", null, 500, 500, 500, 100); + public static Costume MasterCostume = new Costume("master costume", null, 1500, 1000, 1000, 300); + + public static Costume[] getCostumes() { + return new Costume[]{cheapCostume, SteelCostume, GoldenCostume, MasterCostume}; + } +} diff --git a/Java-Knight/src/main/java/org/project/constants/gameConstant/Shields.java b/Java-Knight/src/main/java/org/project/constants/gameConstant/Shields.java new file mode 100644 index 0000000..9bbe7b7 --- /dev/null +++ b/Java-Knight/src/main/java/org/project/constants/gameConstant/Shields.java @@ -0,0 +1,14 @@ +package org.project.constants.gameConstant; + +import org.project.item.Accessory.Shield; + +public final class Shields { + public static Shield WoodenShield = new Shield("wooden shield", null, 40, 100, 100, 10); + public static Shield SteelShield = new Shield("steel shield", null, 150, 300, 300, 30); + public static Shield GoldenShield = new Shield("golden shield", null, 500, 500, 500, 100); + public static Shield MasterShield = new Shield("master shield", null, 1500, 1000, 1000, 300); + + public static Shield[] getShields() { + return new Shield[]{WoodenShield, SteelShield, GoldenShield, MasterShield}; + } +} diff --git a/Java-Knight/src/main/java/org/project/constants/gameConstant/Weapons.java b/Java-Knight/src/main/java/org/project/constants/gameConstant/Weapons.java new file mode 100644 index 0000000..f0b30e0 --- /dev/null +++ b/Java-Knight/src/main/java/org/project/constants/gameConstant/Weapons.java @@ -0,0 +1,14 @@ +package org.project.constants.gameConstant; + +import org.project.item.Accessory.Weapon; + +public final class Weapons { + public static Weapon Dagger = new Weapon("dagger", null, 40, 100, 100, 10); + public static Weapon SteelSword = new Weapon("steel sword", null, 150, 100, 100, 30); + public static Weapon GoldenSword = new Weapon("golden sword", null, 500, 100, 100, 100); + public static Weapon MasterSword = new Weapon("master sword", null, 1500, 100, 100, 300); + + public static Weapon[] getWeapons() { + return new Weapon[] {Dagger, SteelSword, GoldenSword, MasterSword}; + } +}