Clean up JoystickController. Modernize more Objective-C syntax. Remove direct public...
[enjoyable.git] / SubAction.m
1 //
2 // SubAction.m
3 // Enjoy
4 //
5 // Created by Sam McCall on 5/05/09.
6 //
7
8 // TODO(jfw): This class is useless and can just be replaced w/ JSAction probably.
9
10 #import "SubAction.h"
11
12 @implementation SubAction {
13 BOOL active;
14 }
15
16 @synthesize active;
17
18 - (id)initWithIndex:(int)newIndex name:(NSString *)newName base:(JSAction *)newBase {
19 if ((self = [super init])) {
20 self.name = newName;
21 self.base = newBase;
22 self.index = newIndex;
23 }
24 return self;
25 }
26
27 -(NSString*) stringify {
28 return [[NSString alloc] initWithFormat: @"%@~%d", [base stringify], self.index];
29 }
30
31 @end