OSDN Git Service

UIを調整
[kcd/KCD.git] / KCD / HMMidnightBattleCommand.m
1 //
2 //  HMMidnightBattleCommand.m
3 //  KCD
4 //
5 //  Created by Hori,Masaki on 2014/05/24.
6 //  Copyright (c) 2014年 Hori,Masaki. All rights reserved.
7 //
8
9 #import "HMMidnightBattleCommand.h"
10
11 #import "HMCalculateDamageCommand.h"
12
13 @implementation HMMidnightBattleCommand
14 + (void)load
15 {
16         static dispatch_once_t onceToken;
17         dispatch_once(&onceToken, ^{
18                 [HMJSONCommand registerClass:self];
19         });
20 }
21
22 + (BOOL)canExcuteAPI:(NSString *)api
23 {
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;
26         
27         return NO;
28 }
29
30 - (id)init
31 {
32         self = [super initWithCommands:
33                         [HMCalculateDamageCommand new],
34                         nil];
35         return self;
36 }
37 @end