Source/Game+Protected.h
changeset 26 e7a464fb6d39
parent 12 4e567e11f45f
     1.1 --- a/Source/Game+Protected.h	Mon Jul 07 15:47:42 2008 -0700
     1.2 +++ b/Source/Game+Protected.h	Sun Jan 11 00:02:27 2009 -0800
     1.3 @@ -25,11 +25,14 @@
     1.4  
     1.5  #pragma mark  Abstract methods for subclasses to implement:
     1.6  
     1.7 -/** Called by -setBoard: Should all all necessary Grids/Pieces/Cards/etc. to _board.
     1.8 +/** Called by -setTable: Should all all necessary Grids/Pieces/Cards/etc. to _table.
     1.9      This method is always called during initialization of a new Game, and may be called
    1.10 -    again afterwards, for example if the board area is resized. */
    1.11 +    again afterwards, for example if the table area is resized. */
    1.12  - (void) setUpBoard;
    1.13  
    1.14 +/** Called after the tablePerspectiveAngle property changes. */
    1.15 +- (void) perspectiveChanged;
    1.16 +
    1.17  /** Should return the winning player, if the current position is a win, else nil.
    1.18      Default implementation returns nil. */
    1.19  - (Player*) checkForWinner;
    1.20 @@ -40,6 +43,10 @@
    1.21  /** Sets the number of players in the game. Subclass initializers should call this. */
    1.22  - (void) setNumberOfPlayers: (unsigned)n;
    1.23  
    1.24 +/** The angle by which the table is tilted "away from" the viewer to give 3D perspective.
    1.25 +    Subclasses should not change this! It won't do anything. */
    1.26 +@property CGFloat tablePerspectiveAngle;
    1.27 +
    1.28  /** Animate a piece moving from src to dst. Used in implementing -applyMoveString:. */
    1.29  - (BOOL) animateMoveFrom: (CALayer<BitHolder>*)src to: (CALayer<BitHolder>*)dst;
    1.30