changeset 14 | 4585c74d809c |
parent 13 | db7bb080c3d5 |
child 16 | 28392c9a969f |
1.1 --- a/Source/Player.m Tue Jul 08 13:12:01 2008 -0700 1.2 +++ b/Source/Player.m Tue Jul 08 20:32:52 2008 -0700 1.3 @@ -78,6 +78,14 @@ 1.4 } 1.5 1.6 1.7 +- (void) copyFrom: (Player*)player 1.8 +{ 1.9 + self.local = player.local; 1.10 + self.name = player.name; 1.11 + setObj(&_extraValues, [[player->_extraValues mutableCopy] autorelease]); 1.12 +} 1.13 + 1.14 + 1.15 @synthesize game=_game, name=_name, local=_local; 1.16 1.17 - (BOOL) isCurrent {return self == _game.currentPlayer;}