project_files/HedgewarsMobile/Classes/GameSetup.h
author koda
Thu, 24 Jun 2010 01:08:25 +0200
changeset 3548 4d220ee7c75f
parent 3547 02875b1145b7
child 3616 85d69ddb41b6
permissions -rw-r--r--
server somewhat simplified and correct sporadic crasher workaround for not-rotating curl effect display memory warning only once

//
//  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;  // Port on which engine will listen
    TCPsocket csd;      // Client socket descriptor
}

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

-(void) engineProtocol;
-(void) startThread:(NSString *)selector;
-(int)  sendToEngine:(NSString *)string;
-(void) provideTeamData:(NSString *)teamName forHogs:(NSInteger) numberOfPlayingHogs withHealth:(NSInteger) initialHealth ofColor:(NSNumber *)teamColor;
-(void) provideAmmoData:(NSString *)ammostoreName forPlayingTeams:(NSInteger) numberOfTeams;
-(NSInteger) provideScheme:(NSString *)schemeName;

-(const char **)getSettings;

@end