forked from pazdera/libcity
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcity.h
50 lines (39 loc) · 869 Bytes
/
city.h
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* This code is part of libcity library.
*
* @file city.h
* @date 06.03.2011
* @author Radek Pazdera ([email protected])
*
* @brief Library interface for the city creation process.
*
*/
#ifndef _CITY_H_
#define _CITY_H_
#include <list>
class StreetGraph;
class Zone;
class Polygon;
class City
{
public:
City();
virtual ~City();
virtual void generate();
private: /* Copying not allowed */
City(City const& source);
City& operator=(City const& source);
protected:
virtual void createPrimaryRoadNetwork() = 0;
virtual void createZones() = 0;
virtual void createSecondaryRoadNetwork() = 0;
virtual void createBlocks() = 0;
virtual void createBuildings() = 0;
StreetGraph* map;
std::list<Zone*> *zones;
Polygon* area;
private:
void initialize();
void freeMemory();
};
#endif