Example #1
0
 IndustryType GetRandomIndustry()
 {
     return(RandomEnum <IndustryType> .GenerateValue());
 }
Example #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();
                }
            }
        }