summary refs log tree commit diff stats
path: root/Classes/GameModeSelection.h
diff options
context:
space:
mode:
Diffstat (limited to 'Classes/GameModeSelection.h')
-rw-r--r--Classes/GameModeSelection.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/Classes/GameModeSelection.h b/Classes/GameModeSelection.h index bdb38fb..ec6d5ad 100644 --- a/Classes/GameModeSelection.h +++ b/Classes/GameModeSelection.h
@@ -8,23 +8,17 @@
8 8
9#import "cocos2d.h" 9#import "cocos2d.h"
10#import "GameModeSelectionDelegate.h" 10#import "GameModeSelectionDelegate.h"
11#import "GameModeInfo.h"
11 12
12@interface GameModeSelection : CCMenuItem { 13@interface GameModeSelection : CCMenuItem {
13 NSString* name; 14 GameModeInfo* gameMode;
14 NSString* location;
15 BOOL unlocked;
16 NSString* unlockCondition;
17 id<GameModeSelectionDelegate> delegate; 15 id<GameModeSelectionDelegate> delegate;
18} 16}
19 17
20@property (readonly) NSString* name; 18@property (readonly) GameModeInfo* gameMode;
21@property (readonly) NSString* location;
22@property (readonly) BOOL unlocked;
23@property (nonatomic,retain) id<GameModeSelectionDelegate> delegate; 19@property (nonatomic,retain) id<GameModeSelectionDelegate> delegate;
24+ (id)selectionWithName:(NSString*)name location:(NSString*)location filename:(NSString*)filename unlocked:(BOOL)unlocked; 20+ (id)selectionWithGameModeInfo:(GameModeInfo*)m_gameMode;
25+ (id)selectionWithName:(NSString *)name location:(NSString *)location filename:(NSString *)filename unlockCondition:(NSString*)unlockCondition; 21- (id)initWithGameModeInfo:(GameModeInfo*)m_gameMode;
26- (id)initWithName:(NSString*)name location:(NSString*)location filename:(NSString*)filename unlocked:(BOOL)unlocked;
27- (id)initWithName:(NSString *)name location:(NSString *)location filename:(NSString *)filename unlockCondition:(NSString*)unlockCondition;
28- (void)buttonTapped; 22- (void)buttonTapped;
29 23
30@end 24@end