Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Person;
- import javax.swing.*;
- public class Attributs {
- /* public static Attributs getStreinth() {
- return streinth;
- }
- public static Attributs getDextery() {
- return dextery;
- }
- public static Attributs getVitality() {
- return vitality;
- }
- public static Attributs getIntelligence() {
- return intelligence;
- }
- public static Attributs getCharisma() {
- return charisma;
- }
- public static Attributs getFaith() {
- return faith;
- }
- */
- private int value = 5;
- private String name = "";
- private String nameEn = "";
- private ImageIcon txtIcon; //текстовой
- private ImageIcon Icon; //картинка
- private Attributs(int value, String name, ImageIcon txtIcon, ImageIcon icon,String nameEn){
- this.value = value;
- this.name = name;
- this.txtIcon = txtIcon;
- this.Icon = icon;
- this.nameEn = nameEn;
- }
- //гетеры
- public int getValue() {
- return value;
- }
- public String getName() {
- return name;
- }
- public String getNameEn() {
- return nameEn;
- }
- public ImageIcon getTxtIcon() {
- return txtIcon;
- }
- public ImageIcon getIcon() {
- return Icon;
- }
- // объекты, вписать иконки в ImageIcon(....)
- public Attributs streinth = new Attributs(5,"Сила",null,null,"Streinth");
- public Attributs dextery = new Attributs(5,"Ловкость",null,null,"Dextery");
- public Attributs vitality = new Attributs(5,"Выносливость", null,null,"Vitality");
- public Attributs intelligence = new Attributs(5,"Интеллект",new ImageIcon(),new ImageIcon(),"Intelligence");
- public Attributs charisma = new Attributs(5,"Харизма",new ImageIcon(),new ImageIcon(),"Charisma");
- public Attributs faith = new Attributs(5,"Вера",new ImageIcon(),new ImageIcon(),"Faith");
- }
Add Comment
Please, Sign In to add comment