Esempio n. 1
0
 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();
     }
 }
Esempio n. 2
0
 PlotYield makeYield(int f, int h, int c)
 {
     int yields[] = {f, h, c};
     return PlotYield(yields);
 }