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]]; |
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 |
|
|