src/City.h

Go to the documentation of this file.
00001 /* Crown and Cutlass
00002  * City Class
00003  *
00004  * This is inherited from the Environment Object. It will keep
00005  * the location, name, and economic information of the city.
00006  */
00007 
00008 #if !defined (_CITY_H_)
00009 
00010 #define _CITY_H_
00011 
00012 #include <vector>
00013 #include "IEnvironmentObject.h"
00014 
00015 class Product;
00016 class Terrain;
00017 class CityEconomy;
00018 class BuildingList;
00019 
00020 using namespace std;
00021 
00022 class City: public IEnvironmentObject {
00023  public:
00024   // Constructor
00025   City(Terrain *landIn, string cityName, int cityLocX, int cityLocY, BuildingList *buildingsIn);
00026 
00027   // Destructor
00028   ~City();
00029 
00030   // Method
00031   void DisplayObject();
00032 
00033   bool CheckName(const char* cityName);
00034 
00035   CityEconomy* MyEconomy;
00036 
00037  private:
00038   // Will probably need some product information here.
00039   float height;
00040   Terrain *land;
00041 
00042   // List of buildings to draw this city
00043   BuildingList *buildings;
00044 };
00045 
00046 #endif

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