All Data Structures Files Functions Variables Enumerations Enumerator Properties Defines
/Projects/Cogito/src/Objects/Slide.m
Go to the documentation of this file.
00001 //
00002 //  Slide.m
00003 //  Author: Thomas Taylor
00004 //
00005 //  Used in the SlideViewer
00006 //
00007 //  06/03/2012: Created class
00008 //
00009 
00010 #import "Slide.h"
00011 
00012 @implementation Slide
00013 
00014 #pragma mark -
00015 #pragma mark Memory Allocation
00016 
00020 -(void)dealloc
00021 {
00022     [background release];
00023     [super dealloc];
00024 }
00025 
00026 #pragma mark -
00027 #pragma mark Initialisation
00028 
00033 -(id)initWithImage:(NSString*)_imageName
00034 {    
00035     self = [super init];
00036     
00037     if (self != nil) 
00038     {
00039         background = [CCSprite spriteWithFile:_imageName];
00040         [self addChild:background];
00041     }
00042     return self;
00043 }
00044 
00045 #pragma mark -
00046 
00050 -(void)update
00051 {
00052     // do nothing
00053 }
00054 
00055 @end