X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Target.h;h=f7d4ec119320ce19737d0eef2bcf0ecabbfee9cf;hp=215245ffd6d4b3ceec1d53e990de6161d47cf953;hb=51d43664909060e85c943c4d63cc3cff307ceb1d;hpb=530009447c5bbd360ac5023979cffc6d32a28df3 diff --git a/Target.h b/Target.h index 215245f..f7d4ec1 100644 --- a/Target.h +++ b/Target.h @@ -8,16 +8,16 @@ #import -@interface Target : NSObject { - BOOL running; - int inputValue; -} +@interface Target : NSObject -@property(readwrite) BOOL running; -@property(readwrite) int inputValue; --(void) trigger; --(void) untrigger; --(NSString*) stringify; -+(Target*) unstringify: (NSString*) str withConfigList: (NSArray*) configs; +@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; @end