Lots of reworking. Completed support for game history, including Turn class. Changed Game API around quite a bit.
5 // Created by Jens Alfke on 3/7/08.
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
11 #import <QuartzCore/QuartzCore.h>
13 #import <Quartz/Quartz.h>
17 @interface GGBLayer : CALayer <NSCopying>
19 CABasicAnimation *_curAnimation;
21 #if ! TARGET_OS_IPHONE
24 // For some reason, the CALayer class on iPhone OS doesn't have these!
25 CGFloat _cornerRadius, _borderWidth;
26 CGColorRef _borderColor, _realBGColor;
27 unsigned int _autoresizingMask;
30 @property CGFloat cornerRadius, borderWidth;
31 @property CGColorRef borderColor;
34 - (void) redisplayAll;
36 - (void) animateAndBlock: (NSString*)keyPath from: (id)from to: (id)to duration: (NSTimeInterval)duration;
41 /** Moves a layer from one superlayer to another, without changing its position onscreen. */
42 void ChangeSuperlayer( CALayer *layer, CALayer *newSuperlayer, int index );
44 /** Removes a layer from its superlayer without any fade-out animation. */
45 void RemoveImmediately( CALayer *layer );
47 /** Disables animations until EndDisableAnimations is called. */
48 void BeginDisableAnimations(void);
49 void EndDisableAnimations(void);
51 CGColorRef GetEffectiveBackground( CALayer *layer );