Source/GGBLayer.h
author Jens Alfke <jens@mooseyard.com>
Sun Mar 16 15:06:47 2008 -0700 (2008-03-16)
changeset 7 428a194e3e59
parent 4 d781b00f3ed4
child 8 45c82a071aca
permissions -rw-r--r--
Game class now tracks board state and moves, as strings, and can step through its history.
Fixed another bug in Go (you could drag your captured stones back to the board!)
     1 //
     2 //  GGBLayer.h
     3 //  GGB-iPhone
     4 //
     5 //  Created by Jens Alfke on 3/7/08.
     6 //  Copyright 2008 __MyCompanyName__. All rights reserved.
     7 //
     8 
     9 #if TARGET_OS_ASPEN
    10 #import <QuartzCore/QuartzCore.h>
    11 #else
    12 #import <Quartz/Quartz.h>
    13 #endif
    14 
    15 
    16 @interface GGBLayer : CALayer <NSCopying>
    17 {
    18     CABasicAnimation *_curAnimation;
    19 
    20 #if ! TARGET_OS_ASPEN
    21 }
    22 #else
    23 // For some reason, the CALayer class on iPhone OS doesn't have these!
    24     CGFloat _cornerRadius, _borderWidth;
    25     CGColorRef _borderColor, _realBGColor;
    26     unsigned int _autoresizingMask;
    27 }
    28 
    29 @property CGFloat cornerRadius, borderWidth;
    30 @property CGColorRef borderColor;
    31 #endif
    32 
    33 - (void) redisplayAll;
    34 
    35 - (void) animateAndBlock: (NSString*)keyPath from: (id)from to: (id)to duration: (NSTimeInterval)duration;
    36 
    37 @end