
Definition at line 84 of file AI.h.
Public Methods | |
| CityLessThreatened (ThreatMap &tm, Map::WorldMap &wm) | |
| BOOL | operator() (City *c1, City *c2) const |
Public Attributes | |
| ThreatMap & | m_threatMap |
| Map::WorldMap & | m_worldMap |
|
||||||||||||
|
Definition at line 118 of file AI.cpp.
00118 : 00119 m_threatMap(tm), m_worldMap(wm) { } |
|
||||||||||||
|
Definition at line 122 of file AI.cpp. References Int2Tuple::a, Int2Tuple::b, m_threatMap, m_worldMap, City::position(), and Map::WorldMap::worldToGridCoord().
00123 {
00124 Int2Tuple c1Coords = m_worldMap.worldToGridCoord(c1->position());
00125 Int2Tuple c2Coords = m_worldMap.worldToGridCoord(c2->position());
00126 return m_threatMap[c1Coords.a][c1Coords.b] < m_threatMap[c2Coords.a][c2Coords.b];
00127 }
|
|
|
Definition at line 90 of file AI.h. Referenced by operator()(). |
|
|
Definition at line 91 of file AI.h. Referenced by operator()(). |
1.3-rc2