X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=JSAction.m;h=1cdbeb23e4f0e5b32fe4052cbd25d3a9a3bb1353;hp=84d1ea84c395d40587dd3bd04879fc74247fa51c;hb=f563321aec9e13b8479ab3b890a9179f095a8b17;hpb=20ccd38576bb48caf8e4129a8c86fe04819d83bc diff --git a/JSAction.m b/JSAction.m index 84d1ea8..1cdbeb2 100644 --- a/JSAction.m +++ b/JSAction.m @@ -9,27 +9,28 @@ @implementation JSAction -@synthesize cookie; -@synthesize index; -@synthesize children; -@synthesize base; -@synthesize name; +- (id)initWithName:(NSString *)newName base:(id )newBase { + if ((self = [super init])) { + self.name = newName; + self.base = newBase; + } + return self; +} - (id)findSubActionForValue:(IOHIDValueRef)value { return NULL; } -- (NSString *)stringify { - return [NSString stringWithFormat: @"%@~%p", [base stringify], cookie]; +- (NSString *)uid { + return [NSString stringWithFormat:@"%@~%@", [_base uid], _name]; } - (void)notifyEvent:(IOHIDValueRef)value { [self doesNotRecognizeSelector:_cmd]; } -- (BOOL)active { - [self doesNotRecognizeSelector:_cmd]; - return NO; +- (float)magnitude { + return 0.f; } @end