project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.h
changeset 6822 206db098f8c5
parent 6700 e04da46ee43c
child 6832 fae8fd118da9
equal deleted inserted replaced
6821:d4f75843cf5d 6822:206db098f8c5
    18  * File created on 10/01/2010.
    18  * File created on 10/01/2010.
    19  */
    19  */
    20 
    20 
    21 
    21 
    22 #import <Foundation/Foundation.h>
    22 #import <Foundation/Foundation.h>
    23 #import "SDL_net.h"
       
    24 
       
    25 
    23 
    26 @interface EngineProtocolNetwork : NSObject {
    24 @interface EngineProtocolNetwork : NSObject {
    27     NSMutableArray *statsArray;
    25     NSMutableArray *statsArray;
    28     NSOutputStream *stream;
    26     NSOutputStream *stream;
    29     TCPsocket csd;
    27     TCPsocket csd;
    35 @property (assign) TCPsocket csd;
    33 @property (assign) TCPsocket csd;
    36 @property (assign) NSInteger enginePort;
    34 @property (assign) NSInteger enginePort;
    37 
    35 
    38 
    36 
    39 -(id)   init;
    37 -(id)   init;
    40 
       
    41 -(void) spawnThread:(NSString *)onSaveFile withOptions:(NSDictionary *)dictionary;
    38 -(void) spawnThread:(NSString *)onSaveFile withOptions:(NSDictionary *)dictionary;
    42 +(NSInteger) activeEnginePort;
       
    43 
       
    44 -(void) engineProtocol:(id) object;
    39 -(void) engineProtocol:(id) object;
    45 
    40 
    46 -(int)  sendToEngine:(NSString *)string;
    41 -(int)  sendToEngine:(NSString *)string;
    47 -(int)  sendToEngineNoSave:(NSString *)string;
    42 -(int)  sendToEngineNoSave:(NSString *)string;
    48 -(void) provideTeamData:(NSString *)teamName forHogs:(NSInteger) numberOfPlayingHogs withHealth:(NSInteger) initialHealth ofColor:(NSNumber *)teamColor;
    43 -(void) provideTeamData:(NSString *)teamName forHogs:(NSInteger) numberOfPlayingHogs withHealth:(NSInteger) initialHealth ofColor:(NSNumber *)teamColor;