From: dsc Date: Tue, 24 May 2011 13:01:04 +0000 (-0700) Subject: formatting :P X-Git-Url: http://git.less.ly:3516/?a=commitdiff_plain;h=0cfef52ae611fa5394823460eeacee2d9fe6abec;p=tanks-ios.git formatting :P --- diff --git a/src/render/animation/QQAnimationContainer.h b/src/render/animation/QQAnimationContainer.h index 8a3973f..848fcd5 100644 --- a/src/render/animation/QQAnimationContainer.h +++ b/src/render/animation/QQAnimationContainer.h @@ -6,17 +6,17 @@ } //////////////////////////////////////////////////////////////////////////////////// -@property(nonatomic,retain) NSMutableDictionary* mAnimationLookup; -@property(nonatomic,retain) SPTextureAtlas* mAtlas; +@property (nonatomic, retain) NSMutableDictionary* mAnimationLookup; +@property (nonatomic, retain) SPTextureAtlas* mAtlas; -@property(nonatomic,retain) NSString* mAtlasPath; -@property(nonatomic,retain) NSString* mAnimationName; +@property (nonatomic, retain) NSString* mAtlasPath; +@property (nonatomic, retain) NSString* mAnimationName; //////////////////////////////////////////////////////////////////////////////////// --(id)init; --(id)initWithContainer:(NSString*)containerPath; --(void)dealloc; +- (id) init; +- (id) initWithContainer:(NSString*)containerPath; +- (void) dealloc; --(void)releaseVRAM; +- (void) releaseVRAM; @end diff --git a/src/render/animation/QQAnimationContainer.mm b/src/render/animation/QQAnimationContainer.mm index 34c066e..c60a5e6 100644 --- a/src/render/animation/QQAnimationContainer.mm +++ b/src/render/animation/QQAnimationContainer.mm @@ -7,7 +7,7 @@ // private method @interface QQAnimationContainer (Private) --(void)parseContentXml:(NSString *)contentPath; +- (void) parseContentXml:(NSString *)contentPath; @end @@ -22,7 +22,7 @@ @synthesize mAnimationName; //////////////////////////////////////////////////////////////////////////////////// --(id)init { +- (id) init { if ((self = [super init])) { self.mAnimationLookup = [[NSMutableDictionary alloc] init]; } @@ -31,7 +31,7 @@ } //////////////////////////////////////////////////////////////////////////////////// --(id)initWithContainer:(NSString *)containerPath { +- (id) initWithContainer:(NSString *)containerPath { if ((self = [super init])) { [self parseContentXml:containerPath]; } @@ -40,7 +40,7 @@ } //////////////////////////////////////////////////////////////////////////////////// --(void)dealloc { +- (void) dealloc { [mAnimationLookup removeAllObjects]; [mAnimationLookup release]; [mAtlas release]; @@ -51,14 +51,14 @@ //////////////////////////////////////////////////////////////////////////////////// // need a way to get the VRAM back --(void)releaseVRAM { +- (void) releaseVRAM { [mAnimationLookup removeAllObjects]; // remove all the movie clips, since they hold on to stuff in the atlas, but keep the dictionary [mAtlas release]; // remove the atlas mAtlas = nil; // is this extraneous? } //////////////////////////////////////////////////////////////////////////////////// --(void)parseContentXml:(NSString *)contentPath { +- (void) parseContentXml:(NSString *)contentPath { NSAutoreleasePool* autoreleasePool = [[NSAutoreleasePool alloc] init]; if (!contentPath) return; @@ -87,7 +87,7 @@ // // // -- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName +- (void) parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI: (NSString *)namespaceURI qualifiedName: (NSString *)qName attributes: (NSDictionary *)attributeDict {