//Final Constructor, set our variables here public GameItem(String itemName, String text, int cost, CharRequire required, int hp, int strength, int intelligence, int dexterity) { //Set the item info name = itemName; shopText = text; shopCost = cost; //Set our requirements requirements = required; //Set the stat boosters hpUp = hp; strengthUp = strength; intelligenceUp = intelligence; dexterityUp = dexterity; }
//Final Constructor, set our variables here public GameItem(String itemName, String text, int cost, CharRequire required, int hp, int strength, int intelligence, int dexterity) { //Set the item info name = itemName; shopText = text; shopCost = cost; //Set our requirements requirements = required; //Set the stat boosters hpUp = hp; strengthUp = strength; intelligenceUp = intelligence; dexterityUp = dexterity; }
public GameItem(String itemName, String text, int cost, CharRequire required, int hp, int strength, int intelligence) :this(itemName, text, cost, required, hp, strength, intelligence, 0) { }
public GameItem(String itemName, String text, int cost, CharRequire required, int hp) :this (itemName, text, cost, required, hp, 0, 0, 0) { }
public GameItem(String itemName, String text, int cost, CharRequire required, int hp, int strength, int intelligence) : this(itemName, text, cost, required, hp, strength, intelligence, 0) { }
public GameItem(String itemName, String text, int cost, CharRequire required, int hp) : this(itemName, text, cost, required, hp, 0, 0, 0) { }