public static List <Weapon> GetMightyWeaps(int amount) { List <Weapon> mightyWeaps = new List <Weapon>(); Random rdm = new Random(); for (int count = 0; count < amount; count++) { int i = rdm.Next(0, 3); mightyWeaps.Add(WeaponFactory.ForgeMightyWeap(i)); } return(mightyWeaps); }
public static List <Weapon> GetKnives(int amount) { List <Weapon> knives = new List <Weapon>(); Random rdm = new Random(); for (int count = 0; count < amount; count++) { int i = rdm.Next(0, 3); knives.Add(WeaponFactory.ForgeKnife(i)); } return(knives); }
public static List <Weapon> GetFlails(int amount) { List <Weapon> flails = new List <Weapon>(); Random rdm = new Random(); for (int count = 0; count < amount; count++) { int i = rdm.Next(0, 3); flails.Add(WeaponFactory.ForgeFlail(i)); } return(flails); }
public static List <Weapon> GetFistWeps(int amount) { List <Weapon> fistWeapons = new List <Weapon>(); Random rdm = new Random(); for (int count = 0; count < amount; count++) { int i = rdm.Next(0, 3); fistWeapons.Add(WeaponFactory.ForgeFistWeap(i)); } return(fistWeapons); }
public static List <Weapon> GetDaggers(int amount) { List <Weapon> daggers = new List <Weapon>(); Random rdm = new Random(); for (int count = 0; count < amount; count++) { int i = rdm.Next(0, 3); daggers.Add(WeaponFactory.ForgeDagger(i)); } return(daggers); }
public static List <Weapon> GetSwords(int amount) { List <Weapon> swords = new List <Weapon>(); Random rdm = new Random(); for (int count = 0; count < amount; count++) { int i = rdm.Next(0, 3); swords.Add(WeaponFactory.ForgeSword(i)); } return(swords); }
static void Main(string[] args) { List <Weapons.Weapon> weapons = new List <Weapons.Weapon>(); WeaponFactory factory = new WeaponFactory(); Weapons.Weapon wep1 = factory.Create(EWeaponType.twohandaxe, ERarityType.normal, "Axe of Bear instinct"); Weapons.Weapon wep2 = factory.Create(EWeaponType.throwingaxe, ERarityType.magic, "Flesh Tearer"); Weapons.Weapon wep3 = factory.Create(EWeaponType.twohandaxe, ERarityType.rare, "Bullova"); Weapons.Weapon wep4 = factory.Create(EWeaponType.throwingaxe, ERarityType.rare, "Adze"); weapons.Add(wep1); weapons.Add(wep2); weapons.Add(wep3); weapons.Add(wep4); foreach (Weapons.Weapon weapon in weapons) { Console.WriteLine(weapon.ToString()); } Console.ReadLine(); }