/[hegemonie]/hegemonie/Network/NetGameList.m
ViewVC logotype

Diff of /hegemonie/Network/NetGameList.m

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by nicov, Fri Jul 18 17:06:15 2003 UTC revision 1.11 by nicov, Mon Jul 21 12:28:26 2003 UTC
# Line 71  NSString * const _gameListURL = @"http:/ Line 71  NSString * const _gameListURL = @"http:/
71    self = [super init];      self = [super init];  
72    if (self != nil)    if (self != nil)
73      {      {
74        _gameList = [[NSMutableArray init] alloc];        //      _gameList = [[NSMutableArray init] alloc];
75          _gameList = [NSMutableArray array];
76      }      }
77        
78    return self;    return self;
# Line 153  NSString * const _gameListURL = @"http:/ Line 154  NSString * const _gameListURL = @"http:/
154                                [infosServer objectForKey: @"address"]]                                [infosServer objectForKey: @"address"]]
155                      gameName: [infosServer objectForKey: @"game_name"]                      gameName: [infosServer objectForKey: @"game_name"]
156                    numPlayers: [[infosServer objectForKey: @"num_players"]                    numPlayers: [[infosServer objectForKey: @"num_players"]
157                                  unsignedIntValue]                                  intValue]
158                 maxNumPlayers: [[infosServer objectForKey: @"max_num_players"]                 maxNumPlayers: [[infosServer objectForKey: @"max_num_players"]
159                                  unsignedIntValue]                                  intValue]
160                        master: [infosServer objectForKey: @"master"]                        master: [infosServer objectForKey: @"master"]
161                       mapName: [infosServer objectForKey: @"map_name"]];                       mapName: [infosServer objectForKey: @"map_name"]];
162    }    }
# Line 184  NSString * const _gameListURL = @"http:/ Line 185  NSString * const _gameListURL = @"http:/
185    NSDistantObject<NetParty> *party;    NSDistantObject<NetParty> *party;
186    NSPort *receivePort;    NSPort *receivePort;
187        
188      printf ("Entre ds connectToGame\n");
189      
190    
191    /** --- FIXE ME ---- Error message without cast **/    /** --- FIXE ME ---- Error message without cast **/
192    receivePort = (NSPort *)[NSPort port];    receivePort = (NSPort *)[NSPort port];
193    
194      printf ("registeredName = %s\n", [[gameID gameName] cString]);
195      printf ("hostAddress = %s\n", [[[gameID host] address] cString]);
196      printf ("hostName = %s\n", [[[gameID host] name] cString]);
197      
198    
199    party = [NetConnection rootProxyForConnectionWithRegisteredName:    party = [NetConnection rootProxyForConnectionWithRegisteredName:
200                             [gameID gameName]                             [gameID gameName]
201                           host: [[gameID host] name]];                           host: [[gameID host] name]];
202    
203      printf ("Connexion etablie\n");
204      
205    
206    NSPort *sendPort = [party connectWithName: playerName    NSPort *sendPort = [party connectWithName: playerName
207                                     withPort: receivePort                                     withPort: receivePort
208                                     initGame: &game];                                     initGame: &game];

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26