30 |
30 |
31 @interface EngineProtocolNetwork : NSObject { |
31 @interface EngineProtocolNetwork : NSObject { |
32 id<EngineProtocolDelegate> delegate; |
32 id<EngineProtocolDelegate> delegate; |
33 |
33 |
34 NSOutputStream *stream; |
34 NSOutputStream *stream; |
35 TCPsocket csd; // Client socket descriptor |
35 TCPsocket csd; |
|
36 NSInteger enginePort; |
36 } |
37 } |
37 |
38 |
38 @property (nonatomic,assign) id<EngineProtocolDelegate> delegate; |
39 @property (nonatomic,assign) id<EngineProtocolDelegate> delegate; |
39 @property (nonatomic,retain) NSOutputStream *stream; |
40 @property (nonatomic,retain) NSOutputStream *stream; |
40 @property (assign) TCPsocket csd; |
41 @property (assign) TCPsocket csd; |
|
42 @property (assign) NSInteger enginePort; |
41 |
43 |
42 |
44 |
43 -(id) init; |
45 -(id) init; |
44 |
46 |
45 -(NSInteger) spawnThread:(NSString *)onSaveFile withOptions:(NSDictionary *)dictionary; |
47 +(void) spawnThread:(NSString *)onSaveFile withOptions:(NSDictionary *)dictionary; |
|
48 +(NSInteger) activeEnginePort; |
|
49 |
46 -(void) engineProtocol:(id) object; |
50 -(void) engineProtocol:(id) object; |
47 -(void) gameHasEndedWithStats:(NSArray *)stats; |
51 -(void) gameHasEndedWithStats:(NSArray *)stats; |
48 |
52 |
49 -(int) sendToEngine:(NSString *)string; |
53 -(int) sendToEngine:(NSString *)string; |
50 -(int) sendToEngineNoSave:(NSString *)string; |
54 -(int) sendToEngineNoSave:(NSString *)string; |