formatting :P
authordsc <david.schoonover@gmail.com>
Tue, 24 May 2011 13:01:04 +0000 (06:01 -0700)
committerdsc <david.schoonover@gmail.com>
Tue, 24 May 2011 13:01:04 +0000 (06:01 -0700)
src/render/animation/QQAnimationContainer.h
src/render/animation/QQAnimationContainer.mm

index 8a3973f..848fcd5 100644 (file)
@@ -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
index 34c066e..c60a5e6 100644 (file)
@@ -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];
 
 ////////////////////////////////////////////////////////////////////////////////////
 // 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 @@
 //   <Clip name='do_foo' frames='5' />
 // </AnimationClips>
 //
-- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName 
+- (void) parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName 
                                      namespaceURI:   (NSString *)namespaceURI 
                                      qualifiedName:  (NSString *)qName 
                                      attributes:     (NSDictionary *)attributeDict {