diff options
author | Starla Insigna <starla4444@gmail.com> | 2013-01-02 23:08:46 -0500 |
---|---|---|
committer | Starla Insigna <starla4444@gmail.com> | 2013-01-02 23:08:46 -0500 |
commit | 28497668761472e085d0c9955aa8077d11bf353c (patch) | |
tree | 48676176c8f2de27f4959d05f209f2f98da3979b /Classes/GameModeInfo.h | |
parent | 6e96fb2144718722208d22f892716b55548135e1 (diff) | |
download | cartcollect-28497668761472e085d0c9955aa8077d11bf353c.tar.gz cartcollect-28497668761472e085d0c9955aa8077d11bf353c.tar.bz2 cartcollect-28497668761472e085d0c9955aa8077d11bf353c.zip |
Removed locked game modes from selection screen
Also removed cluttering attributes "unlockCondition" and "starsToUnlock" from GameModeInfo because they're really not that generalized (and unlockCondition doesn't really make sense if locked game modes are invisible anyway). starsToUnlock can be replaced by simply putting if statements in to GameModeManager's setStars: and then unlocking modes based off that. Completing the tutorial also now unlocks both Collect AND Jump. The idea is that we should make more than just Collect available at the start, and have only a few super hidden game modes that are unlockable; hence locked game modes being invisible.
Diffstat (limited to 'Classes/GameModeInfo.h')
-rw-r--r-- | Classes/GameModeInfo.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Classes/GameModeInfo.h b/Classes/GameModeInfo.h index 2262526..7d60645 100644 --- a/Classes/GameModeInfo.h +++ b/Classes/GameModeInfo.h | |||
@@ -19,7 +19,6 @@ | |||
19 | NSString* unlockCondition; | 19 | NSString* unlockCondition; |
20 | Class gameClass; | 20 | Class gameClass; |
21 | NSString* globalHighscoreKey; | 21 | NSString* globalHighscoreKey; |
22 | int starsToUnlock; | ||
23 | } | 22 | } |
24 | 23 | ||
25 | @property (readonly) NSString* name; | 24 | @property (readonly) NSString* name; |
@@ -27,10 +26,8 @@ | |||
27 | @property (readonly) int numOfStars; | 26 | @property (readonly) int numOfStars; |
28 | @property (readonly) UIImage* image; | 27 | @property (readonly) UIImage* image; |
29 | @property (readonly) BOOL unlocked; | 28 | @property (readonly) BOOL unlocked; |
30 | @property (readonly) NSString* unlockCondition; | ||
31 | @property (readonly) NSString* globalHighscoreKey; | 29 | @property (readonly) NSString* globalHighscoreKey; |
32 | @property (readonly) int starsToUnlock; | 30 | - (id)initWithName:(NSString*)m_name location:(NSString*)m_location numOfStars:(int)m_numOfStars imageFilename:(NSString*)m_imageFilename unlocked:(BOOL)m_unlocked gameClass:(Class)m_gameClass globalHighscoreKey:(NSString*)m_globalHighscoreKey; |
33 | - (id)initWithName:(NSString*)m_name location:(NSString*)m_location numOfStars:(int)m_numOfStars imageFilename:(NSString*)m_imageFilename unlocked:(BOOL)m_unlocked unlockCondition:(NSString*)m_unlockCondition gameClass:(Class)m_gameClass globalHighscoreKey:(NSString*)m_globalHighscoreKey starsToUnlock:(int)m_starsToUnlock; | ||
34 | - (void)setStar:(int)star_id withMessage:(NSString*)message; | 31 | - (void)setStar:(int)star_id withMessage:(NSString*)message; |
35 | - (BOOL)star:(int)star_id; | 32 | - (BOOL)star:(int)star_id; |
36 | - (int)starsCollected; | 33 | - (int)starsCollected; |