MingStar.SimUniversity.Game.Game.TryStartUp C# (CSharp) Method

TryStartUp() public method

public TryStartUp ( bool isSuccessful ) : void
isSuccessful bool
return void
        public void TryStartUp(bool isSuccessful)
        {
            Hashing.HashStartUp(CurrentUniversityColor, isSuccessful,
                                CurrentUniversity.NumberOfSuccessfulCompanies);
            if (isSuccessful)
            {
                ++CurrentUniversity.NumberOfSuccessfulCompanies;
            }
            else // failed
            {
                //TODO: steal card from other players
                ++CurrentUniversity.NumberOfFailedCompanies;
                Hashing.HashMostInfo(MostFailedStartUps.University, MostInfoType.FailedStartUps);
                MostFailedStartUps = MostFailedStartUps.GetMore(CurrentUniversity,
                                                                CurrentUniversity.NumberOfFailedCompanies);
                Hashing.HashMostInfo(MostFailedStartUps.University, MostInfoType.FailedStartUps);
            }
            Hashing.HashStartUp(CurrentUniversityColor, isSuccessful,
                                CurrentUniversity.NumberOfSuccessfulCompanies);
        }