00001 /* 00002 Shops.h 00003 Manages shop-type stuff. 00004 00005 */ 00006 00007 #ifndef _SHOPS_H_ 00008 #define _SHOPS_H_ 00009 00010 #include <string> 00011 #include <vector> 00012 using namespace std; 00013 00015 00018 class Item { 00019 public: 00020 // Generic item stuff 00022 int cost; 00024 int icon; 00025 00026 // Weapons-only stuff 00028 int mod; 00030 int ac_mod; 00032 string name; 00033 00035 bool bIsHealingItem; 00036 00038 bool bIsMagic; 00039 00041 bool bIsHealSpell; 00043 bool bIsFireSpell; 00045 bool bIsLightningSpell; 00047 bool bIsEarthSpell; 00049 bool bIsMeteor; 00051 bool bIsHandOfDeath; 00053 bool bIsFullHeal; 00054 00056 bool bIsKey; 00058 bool bIsManaPotion; 00059 00061 00063 int count; 00064 00066 Item(); 00067 }; 00068 00070 00078 class Shop { 00079 public: 00081 vector <Item*> shopItems; 00083 void loadItems(char *name); 00085 Shop(); 00086 }; 00087 00088 #endif