project_files/HedgewarsMobile/Classes/GameInterfaceBridge.h
changeset 6247 6dfad55fd71c
parent 6083 72c882c0fd0f
child 6259 02765411a912
equal deleted inserted replaced
6246:6b2d19ed521a 6247:6dfad55fd71c
    20 
    20 
    21 
    21 
    22 #import <Foundation/Foundation.h>
    22 #import <Foundation/Foundation.h>
    23 #import "EngineProtocolNetwork.h"
    23 #import "EngineProtocolNetwork.h"
    24 
    24 
    25 typedef enum {gtNone, gtLocal, gtSave, gtMission, gtNet} TGameType;
       
    26 typedef enum {gsNone, gsInGame, gsEnded, gsInterrupted} TGameStatus;
       
    27 
       
    28 @class OverlayViewController;
    25 @class OverlayViewController;
    29 
    26 
    30 @interface GameInterfaceBridge : NSObject <EngineProtocolDelegate> {
    27 @interface GameInterfaceBridge : NSObject <EngineProtocolDelegate> {
    31     UIViewController *parentController;
    28     UIViewController *parentController;
    32     OverlayViewController *overlayController;
    29     OverlayViewController *overlayController;
    33 
    30 
    34     NSString *savePath;
    31     NSString *savePath;
    35     EngineProtocolNetwork *engineProtocol;
    32     EngineProtocolNetwork *engineProtocol;
    36 
    33 
    37     NSInteger ipcPort;  // Port on which engine will listen
    34     NSInteger ipcPort;  // Port on which engine will listen
    38     TGameType gameType;
       
    39 }
    35 }
    40 
    36 
    41 @property (assign) UIViewController *parentController;
    37 @property (assign) UIViewController *parentController;
    42 @property (nonatomic,retain) NSString *savePath;
    38 @property (nonatomic,retain) NSString *savePath;
    43 
    39 
    44 @property (nonatomic,retain) OverlayViewController *overlayController;
    40 @property (nonatomic,retain) OverlayViewController *overlayController;
    45 @property (nonatomic,retain) EngineProtocolNetwork *engineProtocol;
    41 @property (nonatomic,retain) EngineProtocolNetwork *engineProtocol;
    46 
    42 
    47 @property (assign) NSInteger ipcPort;
    43 @property (assign) NSInteger ipcPort;
    48 @property (assign) TGameType gameType;
       
    49 
    44 
    50 
    45 
    51 -(id)   initWithController:(id) viewController;
    46 -(id)   initWithController:(id) viewController;
    52 -(void) startLocalGame:(NSDictionary *)withOptions;
    47 -(void) startLocalGame:(NSDictionary *)withOptions;
    53 -(void) startSaveGame:(NSString *)atPath;
    48 -(void) startSaveGame:(NSString *)atPath;