src/Product.h

Go to the documentation of this file.
00001 /* Crown and Cutlass
00002  * Product Class
00003  *
00004  * This is a very simple class to keep of each product.
00005  */
00006 
00007 #ifndef _PRODUCT_H_
00008 #define _PRODUCT_H_
00009 
00010 #include <string>
00011 
00012 using namespace std;
00013 
00014 class Product {
00015  public:
00016   // Constructors
00017   Product();
00018   Product(int myID, int Consumption, int Production);
00019   
00020   // Destructor
00021   ~Product();
00022   
00023   // Methods
00024   string GetName();
00025   int GetConsumption();
00026   void SetConsumption(int Consumption);
00027   int GetProduction();
00028   void SetProduction(int Production);
00029   int GetProductionPoints();
00030   void SetProductionPoints(int PP);
00031   int AddProductionPoints(int PP);
00032 
00033   int GetPrice(int CitySize);
00034 
00035   void Print();
00036   
00037  private:
00038   int m_ID;
00039   int m_ConsumptionRate; // Per Size Unit
00040   int m_ProductionRate; // Per Production Point
00041   int m_ProductionPoints;
00042 };
00043 
00044 #endif

Generated on Mon Jan 8 22:34:12 2007 for CrownandCutlass by  doxygen 1.4.7