PlotYield DotMapItem::getOutput(XYCoords coords, int improvementIndex) const { DotMapPlotData tmp(coords); PlotDataConstIter ci = plotData.find(tmp); if (ci != plotData.end()) { return ci->getPlotYield(improvementIndex); } else { return PlotYield(); } }
PlotYield makeYield(int f, int h, int c) { int yields[] = {f, h, c}; return PlotYield(yields); }