1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
void Menu::armorShop()
{
system("cls");
cout<<"[1]Battle suit = 950 Gold\n[2]Cuirass 2400 Gold\n[3]Maximillian 5400 Gold"<<endl;
choose=_getch();
switch(choose)
{
case '1':
{shop battleSuit;
battleSuit.price=950;
battleSuit.details="This will give you additional 5 armor when worn. Good for newbies.";
buyingMenu(battleSuit.price,battleSuit.details,battleSuit.item,battleSuit.equipment,gold);
battleSuit.item="Battle Suit";
items(battleSuit.item,battleSuit.equipment);}
break;
case '2':
{shop cuirass;
cuirass.price=2400;
cuirass.details="This will give you additional 7 armor when worn.";
buyingMenu(cuirass.price,cuirass.details,cuirass.item,cuirass.equipment,gold);
cuirass.item="Cuirass";
items(cuirass.item,cuirass.equipment);}
break;
case '3':
{shop Maximillian;
Maximillian.price=5400;
Maximillian.details="This will give you additional 9 armor when worn ";
buyingMenu(Maximillian.price,Maximillian.details,Maximillian.item,Maximillian.equipment,gold);
Maximillian.item="Maximillian";
items(Maximillian.item,Maximillian.equipment);}
break;
default:
armorShop(); break;
}
}
|