OSDN Git Service

HMGetShipCommandクラスをSwiftで書き換え
[kcd/KCD.git] / KCD / HMDestroyShipCommand.m
1 //
2 //  HMDestroyShipCommand.m
3 //  KCD
4 //
5 //  Created by Hori,Masaki on 2014/07/20.
6 //  Copyright (c) 2014年 Hori,Masaki. All rights reserved.
7 //
8
9 #import "HMDestroyShipCommand.h"
10
11 #import "HMRealDestroyShipCommand.h"
12 #import "HMMemberMaterialCommand.h"
13
14
15 @implementation HMDestroyShipCommand
16 + (void)load
17 {
18         static dispatch_once_t onceToken;
19         dispatch_once(&onceToken, ^{
20                 [HMJSONCommand registerClass:self];
21         });
22 }
23
24 + (BOOL)canExcuteAPI:(NSString *)api
25 {
26         if([api isEqualToString:@"/kcsapi/api_req_kousyou/destroyship"]) return YES;
27         
28         return NO;
29 }
30 - (id)init
31 {
32         self = [super initWithCommands:
33                         [HMMemberMaterialCommand new],
34                         [HMRealDestroyShipCommand new],
35                         nil];
36         return self;
37 }
38 @end