diff -r 2c06b1120749 -r 00215a7ec5f5 project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.h --- a/project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.h Fri Dec 29 22:37:31 2017 +0100 +++ b/project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.h Sat Dec 30 01:22:11 2017 +0100 @@ -23,32 +23,32 @@ @protocol EngineProtocolDelegate --(void) gameEndedWithStatistics:(NSArray *)stats; +- (void)gameEndedWithStatistics:(NSArray *)stats; @end @interface EngineProtocolNetwork : NSObject { - id delegate; + id __weak delegate; NSOutputStream *stream; TCPsocket csd; NSInteger enginePort; } -@property (nonatomic,assign) id delegate; -@property (nonatomic,retain) NSOutputStream *stream; +@property (nonatomic, weak) id delegate; +@property (nonatomic, strong) 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; +- (id) init; +- (id) initWithPort:(NSInteger)port; +- (void)spawnThread:(NSString *)onSaveFile withOptions:(NSDictionary *)dictionary; +- (void)engineProtocol:(id)object; -(int) sendToEngine:(NSString *)string; -(int) sendToEngineNoSave:(NSString *)string; --(void) provideTeamData:(NSString *)teamName forHogs:(NSInteger) numberOfPlayingHogs withHealth:(NSInteger) initialHealth ofColor:(NSNumber *)teamColor; --(void) provideAmmoData:(NSString *)ammostoreName forPlayingTeams:(NSInteger) numberOfTeams; --(NSInteger) provideScheme:(NSString *)schemeName; +- (void)provideTeamData:(NSString *)teamName forHogs:(NSInteger)numberOfPlayingHogs withHealth:(NSInteger)initialHealth ofColor:(NSNumber *)teamColor; +- (void)provideAmmoData:(NSString *)ammostoreName forPlayingTeams:(NSInteger)numberOfTeams; +- (NSInteger)provideScheme:(NSString *)schemeName; @end