X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Target.h;h=df3535b7176b8c35973f008b5e6d07a4e536268f;hp=f7d4ec119320ce19737d0eef2bcf0ecabbfee9cf;hb=19f40be5b645e44ffb55bdce0b6cc5c5615f68e7;hpb=51d43664909060e85c943c4d63cc3cff307ceb1d diff --git a/Target.h b/Target.h index f7d4ec1..df3535b 100644 --- a/Target.h +++ b/Target.h @@ -6,18 +6,21 @@ // Copyright 2009 University of Otago. All rights reserved. // -#import +@class JoystickController; @interface Target : NSObject -@property (assign) float magnitude; -@property (assign) BOOL running; -@property (readonly) BOOL isContinuous; +@property (nonatomic, assign) float magnitude; +@property (nonatomic, assign) BOOL running; +@property (nonatomic, readonly) BOOL isContinuous; - (void)trigger; - (void)untrigger; - (BOOL)update:(JoystickController *)jc; -- (NSString*) stringify; -+ (Target *)unstringify:(NSString*)str withConfigList:(NSArray*)configs; + +- (NSDictionary *)serialize; ++ (Target *)targetDeserialize:(NSDictionary *)serialization + withConfigs:(NSArray *)configs; ++ (NSString *)serializationCode; @end