author | koda |
Mon, 05 Jul 2010 22:42:43 +0200 | |
changeset 3624 | 304c6d32383a |
parent 3616 | 85d69ddb41b6 |
child 3703 | 12d17c6e8855 |
permissions | -rw-r--r-- |
3547 | 1 |
// |
2 |
// gameSetup.h |
|
3 |
// hwengine |
|
4 |
// |
|
5 |
// Created by Vittorio on 10/01/10. |
|
6 |
// Copyright 2010 __MyCompanyName__. All rights reserved. |
|
7 |
// |
|
8 |
||
9 |
#import <Foundation/Foundation.h> |
|
10 |
#import "SDL_net.h" |
|
11 |
||
12 |
@interface GameSetup : NSObject { |
|
13 |
NSDictionary *systemSettings; |
|
14 |
NSDictionary *gameConfig; |
|
15 |
||
3548
4d220ee7c75f
server somewhat simplified and correct sporadic crasher
koda
parents:
3547
diff
changeset
|
16 |
NSInteger ipcPort; // Port on which engine will listen |
4d220ee7c75f
server somewhat simplified and correct sporadic crasher
koda
parents:
3547
diff
changeset
|
17 |
TCPsocket csd; // Client socket descriptor |
3547 | 18 |
} |
19 |
||
20 |
@property (nonatomic, retain) NSDictionary *systemSettings; |
|
21 |
@property (nonatomic, retain) NSDictionary *gameConfig; |
|
22 |
||
3616
85d69ddb41b6
tackling the iphoneos todo (another trial for the beginning sporadic bug, remove curl animation, don't need to go to detail page)
koda
parents:
3548
diff
changeset
|
23 |
-(id) initWithDictionary:(NSDictionary *)gameDictionary; |
3547 | 24 |
-(void) engineProtocol; |
25 |
-(void) startThread:(NSString *)selector; |
|
26 |
-(int) sendToEngine:(NSString *)string; |
|
27 |
-(void) provideTeamData:(NSString *)teamName forHogs:(NSInteger) numberOfPlayingHogs withHealth:(NSInteger) initialHealth ofColor:(NSNumber *)teamColor; |
|
28 |
-(void) provideAmmoData:(NSString *)ammostoreName forPlayingTeams:(NSInteger) numberOfTeams; |
|
29 |
-(NSInteger) provideScheme:(NSString *)schemeName; |
|
30 |
||
31 |
-(const char **)getSettings; |
|
32 |
||
33 |
@end |