diff -r a187c280dd3d -r f72cac290325 project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.h --- a/project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.h Mon Apr 09 03:25:17 2012 +0200 +++ b/project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.h Mon Apr 09 04:43:30 2012 +0200 @@ -21,19 +21,27 @@ #import "SDL_net.h" +@protocol EngineProtocolDelegate + +-(void) gameEndedWithStatistics:(NSArray *)stats; + +@end + + @interface EngineProtocolNetwork : NSObject { - NSMutableArray *statsArray; + id delegate; NSOutputStream *stream; TCPsocket csd; NSInteger enginePort; } -@property (nonatomic,assign) NSMutableArray *statsArray; +@property (nonatomic,assign) id delegate; @property (nonatomic,retain) NSOutputStream *stream; @property (assign) TCPsocket csd; @property (assign) NSInteger enginePort; -(id) init; +-(id) initWithPort:(NSInteger) port; -(void) spawnThread:(NSString *)onSaveFile withOptions:(NSDictionary *)dictionary; -(void) engineProtocol:(id) object;