X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=JSActionHat.m;h=6ed0ad13443b3c19737d6c6367f646c341c7b63d;hp=d948cc7ac42493be52e71765950de04c34c17714;hb=dd1f684886c2809133356bb9b335a35293e8849e;hpb=20ccd38576bb48caf8e4129a8c86fe04819d83bc diff --git a/JSActionHat.m b/JSActionHat.m index d948cc7..6ed0ad1 100644 --- a/JSActionHat.m +++ b/JSActionHat.m @@ -5,6 +5,8 @@ // Created by Sam McCall on 5/05/09. // +#import "JSActionHat.h" + static BOOL active_eightway[36] = { NO, NO, NO, NO , // center YES, NO, NO, NO , // N @@ -29,10 +31,10 @@ static BOOL active_fourway[20] = { - (id)init { if ((self = [super init])) { - self.children = @[[[SubAction alloc] initWithIndex: 0 name: @"Up" base: self], - [[SubAction alloc] initWithIndex: 1 name: @"Down" base: self], - [[SubAction alloc] initWithIndex: 2 name: @"Left" base: self], - [[SubAction alloc] initWithIndex: 3 name: @"Right" base: self]]; + self.children = @[[[JSAction alloc] initWithName:@"Up" base: self], + [[JSAction alloc] initWithName:@"Down" base: self], + [[JSAction alloc] initWithName:@"Left" base: self], + [[JSAction alloc] initWithName:@"Right" base: self]]; // TODO(jfw): Should have an indexed name, like everything else. self.name = @"Hat switch"; }