Stride Reference Manual
1.0
|
A district is either a city or a village (currently, there is no difference between city and village) More...
#include <District.h>
Public Member Functions | |
District (string district_name, uint influence_size, double influence_speed, double influence_minimum, GeoCoordinate location=GeoCoordinate(0, 0)) | |
Constructor. More... | |
void | addFacility (string facility_name) |
Add a transportation facility to this district. More... | |
bool | hasFacility (string facility_name) const |
If the facility is found in this district, return true. More... | |
double | getFacilityInfluence (string facility_name) const |
void | visitFacility (string facility_name, uint amount) |
void | advanceInfluencesRecords () |
bool | operator== (const District &other_district) |
Equals operator for districts, two districts are equal if their name is the same. More... | |
string | getName () const |
Return the name of the district. More... | |
GeoCoordinate | getLocation () const |
Private Member Functions | |
vector< pair< string, Influence > >::const_iterator | getFacility (string facility_name) const |
vector< pair< string, Influence > >::iterator | getFacility (string facility_name) |
Private Attributes | |
vector< pair< string, Influence > > | m_transportations_facilities |
The transportation facilities have a name (string) and a sphere of influence. More... | |
string | m_name |
The name of the city/village. More... | |
const GeoCoordinate | m_location |
The geographic location of the district. More... | |
const uint | m_influence_size |
All Influences of facilities will get this size. More... | |
const uint | m_influence_speed |
All Influences of facilities will get this speed. More... | |
const uint | m_influence_minimum |
All Influences of facilities will get this minimum. More... | |
Friends | |
class | ClusterSaver |
A district is either a city or a village (currently, there is no difference between city and village)
Definition at line 26 of file District.h.
|
inline |
Constructor.
Definition at line 29 of file District.h.
|
inline |
Add a transportation facility to this district.
Definition at line 38 of file District.h.
|
inline |
If the facility is found in this district, return true.
Definition at line 46 of file District.h.
|
inline |
Definition at line 50 of file District.h.
|
inline |
Definition at line 59 of file District.h.
|
inline |
Definition at line 66 of file District.h.
|
inline |
Equals operator for districts, two districts are equal if their name is the same.
Definition at line 73 of file District.h.
References m_name.
|
inline |
Return the name of the district.
Definition at line 76 of file District.h.
|
inline |
Definition at line 78 of file District.h.
|
inlineprivate |
Definition at line 88 of file District.h.
|
inlineprivate |
Definition at line 93 of file District.h.
|
friend |
Definition at line 98 of file District.h.
|
private |
The transportation facilities have a name (string) and a sphere of influence.
Definition at line 81 of file District.h.
|
private |
|
private |
The geographic location of the district.
Definition at line 83 of file District.h.
|
private |
All Influences of facilities will get this size.
Definition at line 84 of file District.h.
|
private |
All Influences of facilities will get this speed.
Definition at line 85 of file District.h.
|
private |
All Influences of facilities will get this minimum.
Definition at line 86 of file District.h.