Exemplo n.º 1
0
 IndustryType GetRandomIndustry()
 {
     return(RandomEnum <IndustryType> .GenerateValue());
 }
Exemplo n.º 2
0
        public static void SetIndependence(GameEntity company, bool independence)
        {
            if (independence)
            {
                company.isIndependentCompany = true;

                if (!company.hasInvestmentStrategy)
                {
                    company.AddInvestmentStrategy(CompanyGrowthStyle.Aggressive, VotingStyle.Percent75, RandomEnum <InvestorInterest> .GenerateValue(InvestorInterest.None));
                }
            }
            else
            {
                company.isIndependentCompany = false;

                if (company.hasInvestmentStrategy)
                {
                    company.RemoveInvestmentStrategy();
                }
            }
        }