remove confusing overlap between "requirements met" and "unlocked"

This commit is contained in:
Chris Danford
2006-05-03 21:34:05 +00:00
parent acb136102f
commit 5b756e7e31
5 changed files with 34 additions and 31 deletions
+9 -3
View File
@@ -39,6 +39,11 @@ enum UnlockRewardType {
const RString& UnlockRewardTypeToString( UnlockRewardType i );
const RString& UnlockRewardTypeToLocalizedString( UnlockRewardType i );
enum UnlockEntryStatus {
UnlockEntryStatus_RequrementsNotMet,
UnlockEntryStatus_RequirementsMet,
UnlockEntryStatus_Unlocked,
};
class UnlockEntry
{
@@ -70,8 +75,9 @@ public:
int m_iEntryID;
bool IsValid() const;
bool IsRequirementMet() const;
bool IsLocked() const;
bool IsLocked() const { return GetUnlockEntryStatus() != UnlockEntryStatus_Unlocked; }
//bool IsUnlocked() const { return !IsLocked(); }
UnlockEntryStatus GetUnlockEntryStatus() const;
RString GetModifier() const { return m_cmd.GetArg(1).s; }
RString GetDescription() const;
RString GetBannerFile() const;
@@ -104,7 +110,7 @@ public:
// Gets number of unlocks for title screen
int GetNumUnlocks() const;
bool AnyRequirementsAreMet() const;
int GetNumUnlocked() const;
int GetUnlockEntryIndexToCelebrate() const;
bool AnyUnlocksToCelebrate() const;