X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Target.h;h=93b181f083acbc820e1496d0d4955485b2190057;hp=51470bfcd7f089f18945725f0c6cc2b7315e041b;hb=c262a3d0972ba16257fd24a948ab04f528f80d33;hpb=724979785b445dcba8a9861c2531ae0308bdf40a diff --git a/Target.h b/Target.h index 51470bf..93b181f 100644 --- a/Target.h +++ b/Target.h @@ -6,21 +6,21 @@ // Copyright 2009 University of Otago. All rights reserved. // -#import +@class JoystickController; -@interface Target : NSObject { - BOOL running; - BOOL isContinuous; - double inputValue; -} +@interface Target : NSObject -@property(readwrite) BOOL running; -@property(readonly) BOOL isContinuous; -@property(readwrite) double inputValue; --(void) trigger: (JoystickController *)jc; --(void) untrigger: (JoystickController *)jc; +@property (assign) float magnitude; +@property (assign) BOOL running; +@property (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