Created
May 30, 2009 15:55
-
-
Save mauritslamers/120534 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 <AudioToolbox/AudioToolbox.h> | |
| #import <AVFoundation/AVFoundation.h> | |
| @interface CheckPoint : NSObject { | |
| NSMutableArray *Filenames; | |
| // iets met spelers | |
| NSMutableArray *Volume; | |
| NSMutableArray *Players; | |
| BOOL playersInitialized; | |
| CLLocation* Position; | |
| double Margin; | |
| double volume_step_size; | |
| } | |
| @property (readonly, nonatomic) CLLocation* Position; | |
| -(id)initWithLatitude:(float)latitude:(float)longitude:(float)margin; | |
| -(void)setFilenames:(NSArray*)fnames; | |
| -(void)setVolume:(int)PlayerNumber:(float)volume; | |
| -(void)setAllVolumes:(float)volume; | |
| @end |
This file contains hidden or 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 "CheckPoint.h" | |
| @implementation CheckPoint | |
| @synthesize Position; | |
| -(id)initWithLatitude:(float)latitude:(float)longitude:(float)margin{ | |
| if(self = [super init]){ | |
| // constructor | |
| Position = [[CLLocation alloc] initWithLatitude:latitude longitude:longitude]; | |
| Margin = margin; | |
| } | |
| return self; | |
| } |
This file contains hidden or 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> | |
| @class CheckPoint; | |
| @interface Connection : NSObject { | |
| CLLocationCoordinate2D* fromLocationCoordinate; | |
| CLLocationCoordinate2D* toLocationCoordinate; | |
| CheckPoint* fromCheckPoint; | |
| CheckPoint* toCheckPoint; | |
| float Margin; | |
| } | |
| -(id)initWithCheckPointsFrom:(CheckPoint*)from:(CheckPoint*)to:(float)margin; | |
| -(void)processCoordinate:(CLLocation*)newLocation; // a pointer to a location object?? | |
| -(void)performAction:(CLLocation*)newLocation; | |
| -(void)performNeutral; | |
| @end |
This file contains hidden or 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 "CheckPoint.h" | |
| #import "Connection.h" | |
| @implementation Connection | |
| -(id)initWithCheckPointsFrom:(CheckPoint*)from:(CheckPoint*)to:(float)margin{ | |
| if(self = [super init]){ | |
| fromCheckPoint = from; | |
| toCheckPoint = to; | |
| Margin = margin; | |
| fromLocationCoordinate = fromCheckPoint.Position.coordinate; | |
| } | |
| return self; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment