project_files/HedgewarsMobile/Classes/GameSetup.h
author koda
Sat, 03 Jul 2010 05:51:24 +0200
changeset 3617 1df21e06b8ba
parent 3616 85d69ddb41b6
child 3703 12d17c6e8855
permissions -rw-r--r--
a couple of fixes i missed previously
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
3616
85d69ddb41b6 tackling the iphoneos todo (another trial for the beginning sporadic bug, remove curl animation, don't need to go to detail page)
koda
parents: 3548
diff changeset
    23
-(id) initWithDictionary:(NSDictionary *)gameDictionary;
3547
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    24
-(void) engineProtocol;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    25
-(void) startThread:(NSString *)selector;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    26
-(int)  sendToEngine:(NSString *)string;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    27
-(void) provideTeamData:(NSString *)teamName forHogs:(NSInteger) numberOfPlayingHogs withHealth:(NSInteger) initialHealth ofColor:(NSNumber *)teamColor;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    28
-(void) provideAmmoData:(NSString *)ammostoreName forPlayingTeams:(NSInteger) numberOfTeams;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    29
-(NSInteger) provideScheme:(NSString *)schemeName;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    30
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    31
-(const char **)getSettings;
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    32
02875b1145b7 i <3 mercurial
koda
parents: 3546
diff changeset
    33
@end