project_files/HedgewarsMobile/Classes/GameInterfaceBridge.h
changeset 6261 7050772ae46a
parent 6259 02765411a912
child 6263 ec41637ceb64
equal deleted inserted replaced
6260:025d50a6aeb0 6261:7050772ae46a
    23 #import "EngineProtocolNetwork.h"
    23 #import "EngineProtocolNetwork.h"
    24 
    24 
    25 @class OverlayViewController;
    25 @class OverlayViewController;
    26 
    26 
    27 @interface GameInterfaceBridge : NSObject <EngineProtocolDelegate> {
    27 @interface GameInterfaceBridge : NSObject <EngineProtocolDelegate> {
    28     UIViewController *parentController;
       
    29 
       
    30     NSString *savePath;
    28     NSString *savePath;
    31     EngineProtocolNetwork *engineProtocol;
    29     EngineProtocolNetwork *engineProtocol;
    32 
    30 
    33     NSInteger ipcPort;  // Port on which engine will listen
    31     NSInteger ipcPort;  // Port on which engine will listen
    34 }
    32 }
    35 
    33 
    36 @property (assign) UIViewController *parentController;
       
    37 @property (nonatomic,retain) NSString *savePath;
    34 @property (nonatomic,retain) NSString *savePath;
    38 
       
    39 @property (nonatomic,retain) EngineProtocolNetwork *engineProtocol;
    35 @property (nonatomic,retain) EngineProtocolNetwork *engineProtocol;
    40 
    36 
    41 @property (assign) NSInteger ipcPort;
    37 @property (assign) NSInteger ipcPort;
    42 
    38 
    43 
    39 
    44 -(id)   initWithController:(id) viewController;
    40 -(id)   initWithController:(id) viewController;
    45 -(void) startLocalGame:(NSDictionary *)withOptions;
    41 -(void) startLocalGame:(NSDictionary *)withOptions;
    46 -(void) startSaveGame:(NSString *)atPath;
    42 -(void) startSaveGame:(NSString *)atPath;
    47 -(void) startMissionGame:(NSString *)withScript;
    43 -(void) startMissionGame:(NSString *)withScript;
    48 
    44 
    49 -(void) prepareEngineLaunch;
       
    50 -(void) engineLaunch;
       
    51 -(void) gameHasEndedWithStats:(NSArray *)stats;
    45 -(void) gameHasEndedWithStats:(NSArray *)stats;
    52 
    46 
    53 @end
    47 @end