2 // HMMidnightBattleCommand.m
5 // Created by Hori,Masaki on 2014/05/24.
6 // Copyright (c) 2014年 Hori,Masaki. All rights reserved.
9 #import "HMMidnightBattleCommand.h"
11 #import "HMCalculateDamageCommand.h"
13 @implementation HMMidnightBattleCommand
16 static dispatch_once_t onceToken;
17 dispatch_once(&onceToken, ^{
18 [HMJSONCommand registerClass:self];
22 + (BOOL)canExcuteAPI:(NSString *)api
24 if([api isEqualToString:@"/kcsapi/api_req_battle_midnight/battle"]) return YES;
25 if([api isEqualToString:@"/kcsapi/api_req_battle_midnight/sp_midnight"]) return YES;
32 self = [super initWithCommands:
33 [HMCalculateDamageCommand new],