Source/Turn.m
changeset 19 3b750982ff39
parent 15 73f8c889f053
     1.1 --- a/Source/Turn.m	Wed Jul 09 17:07:45 2008 -0700
     1.2 +++ b/Source/Turn.m	Thu Jul 17 13:29:04 2008 -0700
     1.3 @@ -130,6 +130,15 @@
     1.4  }
     1.5  
     1.6  
     1.7 +- (void) _unfinish
     1.8 +{
     1.9 +    NSAssert(_status==kTurnFinished,@"Turn must be finished");
    1.10 +    [self willChangeValueForKey: @"status"];
    1.11 +    _status = kTurnComplete;
    1.12 +    [self didChangeValueForKey: @"status"];
    1.13 +}
    1.14 +
    1.15 +
    1.16  - (Turn*) previousTurn
    1.17  {
    1.18      unsigned n = self.turnNumber;
    1.19 @@ -169,7 +178,7 @@
    1.20  {
    1.21      if( ! _replaying ) {
    1.22          NSAssert(_status<kTurnFinished,@"Finished Turn can't be modified");
    1.23 -        if( _game.board )
    1.24 +        if( _game.table )
    1.25              self.boardState = _game.stateString;
    1.26      }
    1.27  }