This isn't C++.
[enjoyable.git] / JSAction.m
1 //
2 // JSAction.m
3 // Enjoy
4 //
5 // Created by Sam McCall on 4/05/09.
6 //
7
8 #import "JSAction.h"
9
10 @implementation JSAction
11
12 @synthesize cookie;
13 @synthesize children;
14 @synthesize base;
15 @synthesize name;
16 @synthesize active;
17
18 - (id)initWithName:(NSString *)newName base:(JSAction *)newBase {
19 if ((self = [super init])) {
20 self.name = newName;
21 self.base = newBase;
22 }
23 return self;
24 }
25
26 - (id)findSubActionForValue:(IOHIDValueRef)value {
27 return NULL;
28 }
29
30 - (NSString *)uid {
31 return [NSString stringWithFormat:@"%@~%@", [self.base uid], self.name];
32 }
33
34 - (void)notifyEvent:(IOHIDValueRef)value {
35 [self doesNotRecognizeSelector:_cmd];
36 }
37
38 - (float)magnitude {
39 return 0.f;
40 }
41
42 @end