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

Diff of /hegemonie/Network/NetInfosClient.m

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

revision 1.9 by thunder, Thu Jul 17 16:11:05 2003 UTC revision 1.10 by nicov, Fri Jul 25 13:40:21 2003 UTC
# Line 108  Line 108 
108  {  {
109    _proxy = RETAIN ([_connection rootProxy]);    _proxy = RETAIN ([_connection rootProxy]);
110    
   NSEnumerator *enumerator = [[_party clients] objectEnumerator];  
   NetInfosClient *client;  
   while ( (client = [enumerator nextObject]) )  
     {  
       [[client proxy] createPlayer: _player];  
     }  
     
111    NetConnection *defConnection =    NetConnection *defConnection =
112      [NetConnection connectionWithReceivePort: [_connection receivePort]      [NetConnection connectionWithReceivePort: [_connection receivePort]
113                                      sendPort: [_connection receivePort]];                                      sendPort: [_connection receivePort]];
# Line 135  shouldMakeNewConnection: (NetConnection Line 128  shouldMakeNewConnection: (NetConnection
128   */   */
129  - (void) disconnect  - (void) disconnect
130  {  {
   NSEnumerator *enumerator = [[_party clients] objectEnumerator];  
   NetInfosClient *client;  
   while ( (client = [enumerator nextObject]) )  
     {  
       if( client != self )  
         {  
           [[client proxy] destroyPlayer: _player];  
         }  
     }  
   
131    [_party disconnect: self];    [_party disconnect: self];
132  }  }
133    

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

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