project_files/HedgewarsMobile/Classes/GameSetup.h
author koda
Mon, 05 Jul 2010 22:42:43 +0200
changeset 3624 304c6d32383a
parent 3616 85d69ddb41b6
child 3703 12d17c6e8855
permissions -rw-r--r--
button to open ammomenu loading screen that fits launch orientation further work on weapon selection more savings for older idevices

//
//  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;

-(id) initWithDictionary:(NSDictionary *)gameDictionary;
-(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