OSDN Git Service

UIを調整
[kcd/KCD.git] / KCD / HMBattleCommand.m
1 //
2 //  HMBattleCommand.m
3 //  KCD
4 //
5 //  Created by Hori,Masaki on 2014/05/22.
6 //  Copyright (c) 2014年 Hori,Masaki. All rights reserved.
7 //
8
9 #import "HMBattleCommand.h"
10
11 #import "HMCalculateDamageCommand.h"
12
13 @implementation HMBattleCommand
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         return [api isEqualToString:@"/kcsapi/api_req_sortie/battle"];
25 }
26
27 - (id)init
28 {
29         self = [super initWithCommands:
30                         [HMCalculateDamageCommand new],
31                         nil];
32         return self;
33 }
34 @end