This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSStringCategory.h | |
// AdamoCalc | |
// | |
// Created by Tanapon Petapanpiboon on 10/11/11. | |
// Copyright 2011 toptanapon@gmail.com. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
Return the -boundingBox of another node, converted into this node's local | |
coordinate space. | |
*/ | |
-(CGRect) boundingBoxConvertedToNodeSpace:(CCNode *)other | |
{ | |
// Get the bottomLeft and topRight corners of the other node's bounding box | |
// in the other node's coordinate space. | |
CGRect boundingBox = [other boundingBox]; | |
CGPoint bottomLeft = CGPointMake(boundingBox.origin.x, boundingBox.origin.y); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)turnCard | |
{ | |
if ([self isFaceUp]) { | |
[self flipHide]; | |
self.faceUp = NO; | |
} else { | |
self.faceUp = YES; | |
[self flipReveal]; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#import "cocos2d.h" | |
@interface TGScoreLabel : CCLabelTTF { | |
double curScore_; // the current score value of the label | |
BOOL updating_; // if we currently have an update running | |
double interval_; // how long we wait between updates | |
int score; // the target score | |
NSString * formatString; // the string that we format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Lightning.h | |
// Trundle | |
// | |
// Created by Robert Blackwood on 12/1/09. | |
// Copyright 2009 Mobile Bros. All rights reserved. | |
// | |
#import "cocos2d.h" |