コード例 #1
0
    /// <summary>
    /// This is a mock function.
    /// </summary>
    virtual public void MockInstantiate(UInt64 maxWealth)
    {
        /**** ORDER IS ESSENTIAL ****/
        Amiability = new Amiability.Amiability(Seed);        // Will have a bearing on TechLevel
        TechLevel  = Tech.TechLevel.WESTERN;                 // Need to determine how to set this
        Wealth     = new Wealth(Seed, TechLevel, maxWealth); // Dependent on TechLevel

        Population = new Population(this);                   // Dependent on Tech, Amiability, and Wealth

        RaceMakeup = new RaceMakeup(Seed);
        Weather    = new Weather.Weather();
        Flora      = new Flora(Weather);
        Fauna      = new Fauna(Weather);
    }
コード例 #2
0
    public override String ToString()
    {
        string pop      = String.Format("\nPopulation:    {0:N0}", Population.Pop);
        string wealth   = String.Format("\nWealth:        ${0:N2}", Wealth.RegionWealth);
        string income   = String.Format("\nIncome:        ${0:N2}", Income);
        string distance = String.Format("\nDistFrmCntr:   {0:f6}", DistanceFromCenter);

        string printstr = "Region Information:" +
                          pop +
                          wealth +
                          income +
                          "\nAmiability:    " + Amiability.AmiabilityLevel +
                          "\nTechLevel:     " + TechLevel +
                          //"\nWorldCulture:  " + WorldCulture +
                          distance +
                          "\nNclrWstlnd:    " + NuclearWasteland +
                          "\n" + RaceMakeup.ToString() +
                          "\n" + Weather.ToString() +
                          "\n" + Flora.ToString() +
                          "\n" + Fauna.ToString();

        return(printstr);
    }