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);
}