project_files/HedgewarsMobile/Classes/GameSetup.h
changeset 4754 a0fd8211c00f
parent 4574 e26ef1eca20a
child 4760 224c31b3ce7d
equal deleted inserted replaced
4752:d65705a67c4e 4754:a0fd8211c00f
    23 #import "SDL_net.h"
    23 #import "SDL_net.h"
    24 
    24 
    25 @interface GameSetup : NSObject {
    25 @interface GameSetup : NSObject {
    26     NSDictionary *systemSettings;
    26     NSDictionary *systemSettings;
    27     NSDictionary *gameConfig;
    27     NSDictionary *gameConfig;
       
    28     NSMutableDictionary *statsDictionary;
    28 
    29 
    29     NSInteger ipcPort;  // Port on which engine will listen
    30     NSInteger ipcPort;  // Port on which engine will listen
    30     TCPsocket csd;      // Client socket descriptor
    31     TCPsocket csd;      // Client socket descriptor
    31     TCPsocket esd;      // External socket descriptor
    32     TCPsocket esd;      // External socket descriptor
    32     
    33 
    33     NSString *savePath;
    34     NSString *savePath;
    34     BOOL isNetGame;
    35     BOOL isNetGame;
    35     BOOL menuStyle;
    36     BOOL menuStyle;
    36 }
    37 }
    37 
    38 
    38 @property (nonatomic, retain) NSDictionary *systemSettings;
    39 @property (nonatomic, retain) NSDictionary *systemSettings;
    39 @property (nonatomic, retain) NSDictionary *gameConfig;
    40 @property (nonatomic, retain) NSDictionary *gameConfig;
       
    41 @property (nonatomic, retain) NSMutableDictionary *statsDictionary;
    40 @property (nonatomic, retain) NSString *savePath;
    42 @property (nonatomic, retain) NSString *savePath;
    41 @property (assign) BOOL menuStyle;
    43 @property (assign) BOOL menuStyle;
    42 
    44 
    43 -(id) initWithDictionary:(NSDictionary *)gameDictionary;
    45 -(id) initWithDictionary:(NSDictionary *)gameDictionary;
    44 -(void) engineProtocol;
    46 -(void) engineProtocol;
    46 -(int) sendToEngineNoSave:(NSString *)string;
    48 -(int) sendToEngineNoSave:(NSString *)string;
    47 -(void) provideTeamData:(NSString *)teamName forHogs:(NSInteger) numberOfPlayingHogs withHealth:(NSInteger) initialHealth ofColor:(NSNumber *)teamColor;
    49 -(void) provideTeamData:(NSString *)teamName forHogs:(NSInteger) numberOfPlayingHogs withHealth:(NSInteger) initialHealth ofColor:(NSNumber *)teamColor;
    48 -(void) provideAmmoData:(NSString *)ammostoreName forPlayingTeams:(NSInteger) numberOfTeams;
    50 -(void) provideAmmoData:(NSString *)ammostoreName forPlayingTeams:(NSInteger) numberOfTeams;
    49 -(NSInteger) provideScheme:(NSString *)schemeName;
    51 -(NSInteger) provideScheme:(NSString *)schemeName;
    50 
    52 
    51 -(const char **)getSettings:(NSString *)recordFile;
    53 -(const char **)getGameSettings:(NSString *)recordFile;
    52 
    54 
    53 @end
    55 @end