X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Target.h;h=f7d4ec119320ce19737d0eef2bcf0ecabbfee9cf;hp=51470bfcd7f089f18945725f0c6cc2b7315e041b;hb=51d43664909060e85c943c4d63cc3cff307ceb1d;hpb=724979785b445dcba8a9861c2531ae0308bdf40a diff --git a/Target.h b/Target.h index 51470bf..f7d4ec1 100644 --- a/Target.h +++ b/Target.h @@ -8,19 +8,16 @@ #import -@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; +- (NSString*) stringify; ++ (Target *)unstringify:(NSString*)str withConfigList:(NSArray*)configs; @end