Files
c-evo-evo/game/include/Cevo/CityProcessing.h
T

25 lines
935 B
C++

#pragma once
#include "Cevo/Protocol.h"
namespace Cevo {
namespace CityProcessing {
// Equivalent of CityProcessing.pas (~1743 lines). PORTED INCREMENTALLY: this
// is only its "Reporting" section's two simplest functions so far - every
// other function in the original (GetCityReport/GetCityReportNew and
// everything in "Internal Tile Picking"/"Turn Processing") additionally
// needs GetTileInfo/GetUnitReport/Strongest (Database.pas functions not
// ported yet) plus several more Database.pas globals (GWonder, Difficulty,
// ServerVersion, ...) and gameplay data tables (Imp[], CorrLevel[],
// SupportFree[], ...). Add more here only once those are ported too.
// Equivalent of CityProcessing.pas's GetCityAreaInfo().
void getCityAreaInfo(int p, int loc, TCityAreaInfo &cityAreaInfo);
// Equivalent of CityProcessing.pas's CanCityGrow().
bool canCityGrow(int p, int cix);
} // namespace CityProcessing
} // namespace Cevo