コード例 #1
0
        public string getTileInfo(int day)
        {
            string output = "\n" + coor.ToString();

            output += "\n" + terrain;
            output += "\nTemperature: " + temperatures.dailyTemps.days[day];
            output += "\nRainfall: " + precipitation.dailyRain.precip[day];
            output += "\nUpstream: " + rivers.printUpstreamDirections();
            output += "\nDownstream: " + rivers.flowDirection;
            output += "\nSurface Water: " + rivers.dailyVolume.volume[day];
            output += "\n" + habitats;
            Dictionary <string, double> vegetation = getVegetation(day);

            output += "\n" + printDictionary("Vegetation", vegetation);
            output += "\n" + printDictionary("Gatherables", getTodaysGatherables(day));
            // temporary!!!
            output += printDictionary("Full Year Of Gatherables", getTotalGatherablesForYear());
            double riverLevel = 0.0;

            if (!rivers.dailyVolume.doesItDryOut())
            {
                riverLevel = rivers.dailyVolume.getAverageWaterLevel();
            }
            output += printDictionary("Game", habitats.getGame(vegetation, terrain.elevation, riverLevel));
            output += "\n" + minerals;
            return(output);
        }