cocoaTouch/GameSetup.h
author nemo
Fri, 14 May 2010 23:42:56 +0000
changeset 3461 0781275649e9
parent 3365 37ac593e9027
child 3479 972ae3ec178a
permissions -rw-r--r--
revert the restoration of non-vgt health gears. desyncs continued with it, and furthermore, occur in r3489 too

//
//  gameSetup.h
//  hwengine
//
//  Created by Vittorio on 10/01/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SDL_net.h"

@interface GameSetup : NSObject {
	NSDictionary *systemSettings;
    NSDictionary *gameConfig;
    
	NSInteger ipcPort;
	TCPsocket sd, csd; // Socket descriptor, Client socket descriptor
}

@property (nonatomic, retain) NSDictionary *systemSettings;
@property (nonatomic, retain) NSDictionary *gameConfig;

-(void) engineProtocol;
-(void) startThread: (NSString *)selector;
-(int)  sendToEngine: (NSString *)string;
-(void) sendTeamData:(NSString *)fileName withPlayingHogs:(NSInteger) playingHogs ofColor:(NSNumber *)color;
-(void) sendAmmoData:(NSDictionary *)ammoData forTeams: (NSInteger)numberPlaying;

-(const char **)getSettings;

@end