18 * File created on 18/04/2011. |
18 * File created on 18/04/2011. |
19 */ |
19 */ |
20 |
20 |
21 |
21 |
22 #import <Foundation/Foundation.h> |
22 #import <Foundation/Foundation.h> |
|
23 #import "EngineProtocolNetwork.h" |
23 |
24 |
24 typedef enum {gtNone, gtLocal, gtSave, gtNet} TGameType; |
25 typedef enum {gtNone, gtLocal, gtSave, gtNet} TGameType; |
25 |
26 |
26 @class OverlayViewController; |
27 @class OverlayViewController; |
27 @class EngineProtocolNetwork; |
|
28 |
28 |
29 @interface GameInterfaceBridge : NSObject { |
29 @interface GameInterfaceBridge : NSObject <EngineProtocolDelegate> { |
30 UIViewController *parentController; |
30 UIViewController *parentController; |
31 OverlayViewController *overlayController; |
31 OverlayViewController *overlayController; |
32 |
32 |
33 NSDictionary *systemSettings; |
33 NSDictionary *systemSettings; |
34 NSString *savePath; |
34 NSString *savePath; |
47 |
47 |
48 @property (assign) NSInteger ipcPort; |
48 @property (assign) NSInteger ipcPort; |
49 @property (assign) TGameType gameType; |
49 @property (assign) TGameType gameType; |
50 |
50 |
51 |
51 |
52 -(id) initWithController:(id) viewController; |
52 -(id) initWithController:(id) viewController; |
53 -(void) startLocalGame:(NSDictionary *)withDictionary; |
53 -(void) startLocalGame:(NSDictionary *)withDictionary; |
54 -(void) startSaveGame:(NSString *)atPath; |
54 -(void) startSaveGame:(NSString *)atPath; |
55 -(const char **)gatherGameSettings; |
55 -(void) prepareEngineLaunch; |
56 -(void) startGameEngine; |
56 -(void) startGameEngine; |
57 |
57 -(void) gameHasEndedWithStats:(NSArray *)stats; |
58 /* |
|
59 @property (nonatomic, retain) NSDictionary *systemSettings; |
|
60 @property (nonatomic, retain) NSMutableArray *statsArray; |
|
61 @property (assign) BOOL menuStyle; |
|
62 |
|
63 -(id) initWithDictionary:(NSDictionary *)gameDictionary; |
|
64 -(void) engineProtocol; |
|
65 -(int) sendToEngine:(NSString *)string; |
|
66 -(int) sendToEngineNoSave:(NSString *)string; |
|
67 -(void) provideTeamData:(NSString *)teamName forHogs:(NSInteger) numberOfPlayingHogs withHealth:(NSInteger) initialHealth ofColor:(NSNumber *)teamColor; |
|
68 -(void) provideAmmoData:(NSString *)ammostoreName forPlayingTeams:(NSInteger) numberOfTeams; |
|
69 -(NSInteger) provideScheme:(NSString *)schemeName; |
|
70 |
|
71 -(const char **)getGameSettings:(NSString *)recordFile;*/ |
|
72 |
58 |
73 @end |
59 @end |