1.1 --- a/Source/BoardView.m Tue Jul 08 20:32:52 2008 -0700
1.2 +++ b/Source/BoardView.m Wed Jul 09 17:07:45 2008 -0700
1.3 @@ -71,13 +71,6 @@
1.4 }
1.5
1.6
1.7 -- (void) reverseBoard
1.8 -{
1.9 - [_gameboard setValue: [NSNumber numberWithDouble: M_PI]
1.10 - forKeyPath: @"transform.rotation"];
1.11 -}
1.12 -
1.13 -
1.14 - (Game*) game
1.15 {
1.16 return _game;
1.17 @@ -103,14 +96,6 @@
1.18 }
1.19
1.20
1.21 -- (BOOL) canMakeMove
1.22 -{
1.23 - return _game != nil
1.24 - && _game.currentPlayer.local
1.25 - && _game.currentTurn.status < kTurnComplete;
1.26 -}
1.27 -
1.28 -
1.29 - (CGRect) gameBoardFrame
1.30 {
1.31 return self.layer.bounds;
1.32 @@ -120,7 +105,7 @@
1.33 - (void)resetCursorRects
1.34 {
1.35 [super resetCursorRects];
1.36 - if( self.canMakeMove )
1.37 + if( _game.okToMove )
1.38 [self addCursorRect: self.bounds cursor: [NSCursor openHandCursor]];
1.39 }
1.40
1.41 @@ -225,7 +210,7 @@
1.42
1.43 - (void) mouseDown: (NSEvent*)ev
1.44 {
1.45 - if( ! self.canMakeMove ) {
1.46 + if( ! _game.okToMove ) {
1.47 NSBeep();
1.48 return;
1.49 }