author | koda |
Wed, 30 Jun 2010 22:42:55 +0200 | |
changeset 3598 | a8aa06bae895 |
parent 3548 | 4d220ee7c75f |
child 3616 | 85d69ddb41b6 |
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 |
||
23 |
-(void) engineProtocol; |
|
24 |
-(void) startThread:(NSString *)selector; |
|
25 |
-(int) sendToEngine:(NSString *)string; |
|
26 |
-(void) provideTeamData:(NSString *)teamName forHogs:(NSInteger) numberOfPlayingHogs withHealth:(NSInteger) initialHealth ofColor:(NSNumber *)teamColor; |
|
27 |
-(void) provideAmmoData:(NSString *)ammostoreName forPlayingTeams:(NSInteger) numberOfTeams; |
|
28 |
-(NSInteger) provideScheme:(NSString *)schemeName; |
|
29 |
||
30 |
-(const char **)getSettings; |
|
31 |
||
32 |
@end |