cocoaTouch/GameSetup.h
author koda
Thu, 22 Apr 2010 17:43:12 +0000
changeset 3364 e5403e2bf02c
parent 3199 1a9938a27677
child 3365 37ac593e9027
permissions -rw-r--r--
no more hardcoded teams, team selection is real \o/ custom buttons rock removed difficult errlib from openalbridge

//
//  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;
    NSArray *teamsConfig;
    
	NSInteger ipcPort;
	TCPsocket sd, csd; // Socket descriptor, Client socket descriptor
}

@property (nonatomic, retain) NSDictionary *systemSettings;
@property (nonatomic, retain) NSArray *teamsConfig;

-(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