5 // Created by Vittorio on 10/01/10. |
5 // Created by Vittorio on 10/01/10. |
6 // Copyright 2010 __MyCompanyName__. All rights reserved. |
6 // Copyright 2010 __MyCompanyName__. All rights reserved. |
7 // |
7 // |
8 |
8 |
9 #import <Foundation/Foundation.h> |
9 #import <Foundation/Foundation.h> |
10 |
10 #import "SDL_net.h" |
11 |
11 |
12 @interface GameSetup : NSObject { |
12 @interface GameSetup : NSObject { |
13 NSString *localeString; |
13 NSString *localeString; |
14 NSDictionary *systemSettings; |
14 NSDictionary *systemSettings; |
|
15 |
15 BOOL engineProtocolStarted; |
16 BOOL engineProtocolStarted; |
|
17 NSInteger ipcPort; |
|
18 TCPsocket sd, csd; // Socket descriptor, Client socket descriptor |
|
19 |
16 } |
20 } |
17 |
21 |
18 |
22 |
19 @property (nonatomic, retain) NSString *localeString; |
23 @property (nonatomic, retain) NSString *localeString; |
20 @property (retain) NSDictionary *systemSettings; |
24 @property (retain) NSDictionary *systemSettings; |
21 |
25 |
22 -(void) setArgsForLocalPlay; |
26 -(void) setArgsForLocalPlay; |
23 -(void) engineProtocol; |
27 -(void) engineProtocol; |
24 -(void) startThread: (NSString *)selector; |
28 -(void) startThread: (NSString *)selector; |
25 |
29 -(void) loadSettingsFromFile:(NSString *)fileName forKey:(NSString *)objName; |
|
30 -(int) sendToEngine: (NSString *)string; |
|
31 -(void) unloadSettings; |
26 @end |
32 @end |
27 |
33 |