diff -r 4e567e11f45f -r efe5d4523a23 Source/Game+Protected.h --- a/Source/Game+Protected.h Mon Jul 07 15:47:42 2008 -0700 +++ b/Source/Game+Protected.h Thu Jul 31 13:23:44 2008 -0700 @@ -25,11 +25,14 @@ #pragma mark Abstract methods for subclasses to implement: -/** Called by -setBoard: Should all all necessary Grids/Pieces/Cards/etc. to _board. +/** Called by -setTable: Should all all necessary Grids/Pieces/Cards/etc. to _table. This method is always called during initialization of a new Game, and may be called - again afterwards, for example if the board area is resized. */ + again afterwards, for example if the table area is resized. */ - (void) setUpBoard; +/** Called after the tablePerspectiveAngle property changes. */ +- (void) perspectiveChanged; + /** Should return the winning player, if the current position is a win, else nil. Default implementation returns nil. */ - (Player*) checkForWinner; @@ -40,6 +43,10 @@ /** Sets the number of players in the game. Subclass initializers should call this. */ - (void) setNumberOfPlayers: (unsigned)n; +/** The angle by which the table is tilted "away from" the viewer to give 3D perspective. + Subclasses should not change this! It won't do anything. */ +@property CGFloat tablePerspectiveAngle; + /** Animate a piece moving from src to dst. Used in implementing -applyMoveString:. */ - (BOOL) animateMoveFrom: (CALayer*)src to: (CALayer*)dst;