aoc-2015/jour14/raindeer.h
2021-03-30 01:49:26 +02:00

26 lines
643 B
Objective-C

#import <Foundation/Foundation.h>
@interface Raindeer : NSObject
{
NSString *name;
int speed;
int boostTime;
int pause;
int points;
int cooldown;
int hypervitesse;
int distance;
}
// permet de générer des setters et getter selon des attributs
// ici retain, nonatomic et assign
@property (retain, nonatomic) NSString *name;
@property (assign) int speed, boostTime, pause, points, cooldown, hypervitesse, distance;
+ (id) initWithName:(NSString*)name zatSpeed:(int)speed boostTime:(int)timeSpeed LunchTime:(int)pause;
- (int) calculDistance:(int)time;
- (void) updateDistance;
- (void) updatePoints;
@end