project_files/HedgewarsMobile/Classes/GameSetup.h
author koda
Wed, 30 Jun 2010 22:42:55 +0200
changeset 3598 a8aa06bae895
parent 3548 4d220ee7c75f
child 3616 85d69ddb41b6
permissions -rw-r--r--
tiy new overlay graphics clean the sdlwindow created updated latest sdl fixes, corrected leaks and stuff
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     1
//
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     2
//  gameSetup.h
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     3
//  hwengine
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     4
//
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     5
//  Created by Vittorio on 10/01/10.
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     6
//  Copyright 2010 __MyCompanyName__. All rights reserved.
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     7
//
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     8
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
     9
#import <Foundation/Foundation.h>
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    10
#import "SDL_net.h"
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    11
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    12
@interface GameSetup : NSObject {
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    13
    NSDictionary *systemSettings;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    14
    NSDictionary *gameConfig;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    15
    
3548
4d220ee7c75f server somewhat simplified and correct sporadic crasher
koda
parents: 3547
diff changeset
    16
    NSInteger ipcPort;  // Port on which engine will listen
4d220ee7c75f server somewhat simplified and correct sporadic crasher
koda
parents: 3547
diff changeset
    17
    TCPsocket csd;      // Client socket descriptor
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    18
}
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    19
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    20
@property (nonatomic, retain) NSDictionary *systemSettings;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    21
@property (nonatomic, retain) NSDictionary *gameConfig;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    22
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    23
-(void) engineProtocol;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    24
-(void) startThread:(NSString *)selector;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    25
-(int)  sendToEngine:(NSString *)string;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    26
-(void) provideTeamData:(NSString *)teamName forHogs:(NSInteger) numberOfPlayingHogs withHealth:(NSInteger) initialHealth ofColor:(NSNumber *)teamColor;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    27
-(void) provideAmmoData:(NSString *)ammostoreName forPlayingTeams:(NSInteger) numberOfTeams;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    28
-(NSInteger) provideScheme:(NSString *)schemeName;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    29
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    30
-(const char **)getSettings;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    31
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    32
@end