add game accessories

This commit is contained in:
2026-07-11 15:25:34 +03:30
parent 380e5fbca0
commit 1c5d53afc1
3 changed files with 42 additions and 0 deletions
@@ -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};
}
}
@@ -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};
}
}
@@ -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};
}
}