project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.h
changeset 6870 f72cac290325
parent 6868 f31b5213b163
child 10108 c68cf030eded
--- 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 <NSObject>
+
+-(void) gameEndedWithStatistics:(NSArray *)stats;
+
+@end
+
+
 @interface EngineProtocolNetwork : NSObject {
-    NSMutableArray *statsArray;
+    id<EngineProtocolDelegate> delegate;
     NSOutputStream *stream;
     TCPsocket csd;
     NSInteger enginePort;
 }
 
-@property (nonatomic,assign) NSMutableArray *statsArray;
+@property (nonatomic,assign) id<EngineProtocolDelegate> 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;