diff options
author | Starla Insigna <starla4444@gmail.com> | 2011-11-30 12:57:06 -0500 |
---|---|---|
committer | Starla Insigna <starla4444@gmail.com> | 2011-11-30 12:57:06 -0500 |
commit | 6e96fb2144718722208d22f892716b55548135e1 (patch) | |
tree | 4dd550de787dd370a13039c03969442f54a3a856 /Classes/GameModeManager.h | |
parent | fd58a0cde1bb5473e39e6cb82d28113da84b9ae0 (diff) | |
download | cartcollect-6e96fb2144718722208d22f892716b55548135e1.tar.gz cartcollect-6e96fb2144718722208d22f892716b55548135e1.tar.bz2 cartcollect-6e96fb2144718722208d22f892716b55548135e1.zip |
Created a game mode manager
There is now one location for information relating to each GameMode instead of several places, so that info can be easily updated and propagated to, for instance, GameModeSelectionLayer. GameModes can also be specified by an info instance each owns. There's also a way to get an ordered list of game modes. The three star game mode unlocking system has also been added. Closes #213
Diffstat (limited to 'Classes/GameModeManager.h')
-rw-r--r-- | Classes/GameModeManager.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Classes/GameModeManager.h b/Classes/GameModeManager.h new file mode 100644 index 0000000..fdaae60 --- /dev/null +++ b/Classes/GameModeManager.h | |||
@@ -0,0 +1,20 @@ | |||
1 | // | ||
2 | // GameModeManager.h | ||
3 | // Cartographic | ||
4 | // | ||
5 | // Created by Starla Insigna on 11/29/11. | ||
6 | // Copyright (c) 2011 Four Island. All rights reserved. | ||
7 | // | ||
8 | |||
9 | #import <Foundation/Foundation.h> | ||
10 | |||
11 | @interface GameModeManager : NSObject { | ||
12 | NSArray* gameModes; | ||
13 | int stars; | ||
14 | } | ||
15 | |||
16 | @property (readonly) NSArray* gameModes; | ||
17 | @property (assign) int stars; | ||
18 | + (GameModeManager*)sharedInstance; | ||
19 | |||
20 | @end | ||